If we define a abstract class which has a pure virtual destructor, why do we have to give a definition of a destructor in the abstract class?
The destructor for the base class must be called when the object is destroyed, so it needs a definition.
2.1m questions
2.1m answers
60 comments
57.0k users