C
Christian Christmann
Hi,
should destructors of a base class be always declared as "virtual"
in order to avoid "partially destroying"objects when a derived class
object is deleted through a pointer to a base class?
Or are there any cases where the base class destructor should
remain "non-virtual"?
Thank you.
Chris
should destructors of a base class be always declared as "virtual"
in order to avoid "partially destroying"objects when a derived class
object is deleted through a pointer to a base class?
Or are there any cases where the base class destructor should
remain "non-virtual"?
Thank you.
Chris