Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
A destructor is a class element that is called when a class goes out of scope. The class element that is called when a class is created is called the constructor.
#include <iostream> |
All base classes must have a (public) virtual destructor. A non-base class should have a (non-public) non-virtual destructor [1].
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.