First page Back Continue Last page Graphics
Virtual Destructors
Every time you use a new, you want to be sure you have a matching delete.
You also want the destructors to be called in the proper order.
If you didn't make the base class destructor virtual, it would be the only one ever called.
By making it virtual, a Brass Plus object calls a Brass Plus destructor (default) first and then calls the base class destructor second, insuring proper order!