Question OOP-POLY-0054
MediumWhy should a base class with virtual functions usually have a virtual destructor?
- A.
Destructors must always be virtual
- B.
So that deleting a derived object through a base pointer runs the derived destructor too
- C.
Sign up free to see the answer and a step-by-step explanation.