Question OOP-CTOR-0053
MediumWhy should a base class's destructor be virtual if objects are deleted through base pointers?
- A.
Otherwise only the base part is destroyed and the derived resources leak
- B.
To make the class abstract
- C.
Sign up free to see the answer and a step-by-step explanation.