Definition: A Destructor is a class member function in C++ and C# that has the same name as the class itself with a tilde ~ prefix.
The purpose of the destructor is to release or relinquish all resources such as memory, close any open files etc when an object of this class is destroyed. Typically such resources will have been acquired by the class constructor.

