If I define an abstract base class with for example 10 virtual methods, then do I have to define all the virtual methods in any other class I derive from that base class?
What I would like to do is to have base class with virtual functions and then derive some other classes, but I do not want to use all the virtual functions from the base in all of the derived classes! Is it possible?
> If I define an abstract base class with for example 10 virtual methods, then do I have to
> define all the virtual methods in any other class I derive from that base class?
No. Virtual functions are inherited.
If the base class declares pure virtual functions, unless these are overridden and implemented in the derived class, the derived class too would be an abstract class; no objects of the abstract class can be created (except as sub-objects of a class which is further derived from it).