Louis I. answered 05/25/20
Computer Science Instructor/Tutor: Real World and Academia Experienced
Hi - are you asking whether the implementation of this Class (A) conforms to best practices?
If so, well, there's not much here to comment on.
The code compiles successfully .... ;-))
It contains a default constructor, a destructor and a virtual function/method called fun() and no data members to speak of.
The dynamic fun() allows for dynamic binding across instances of A's sub-classes ...
But what else can we say? There's not much here.