C++ class is overriding the virtual extinction Should I call a parent class extinction within the extinction?
MyChildClass::~MyChildClass()
{
//Call Parent Class Destructor
this->MyBaseClass::~MyBaseClass();
Clean up the values in MyChildClass
}
No, don't do that.
You did a great job setting it to virtual
The destructor is called in the opposite order to the order in which it was generated automatically.
© 2024 OneMinuteCode. All rights reserved.