If you plan to extract from this class, you will need to add a virtual .h file of the file like this:
class MyClass
{
MyClass();
virtual ~MyClass();
};
this ensures that the destructor for both the base class and the derived class is called when the derived class is destroyed.
source
share