Back To C++ Constructors & Destructors

a destructor is a special member function in class that has the same name as that of class and is followed by a tilde(~)
a destructor is called when memory allocated to object is deallocated