next up previous contents
Next: Order by access level Up: Class Interface Previous: Data hiding   Contents

Virtual destructor

Implement all of your destructors as virtual if your class serves as a base class and will be derived from. In other words, if there is a remote chance that other classes ever derive from it make the destructor virtual. This way proper destruction of derived objects will occur.



Falko Kuester 2001-08-24