Destructor is also a special member function like constructor. Destructor destroys the class objects created by constructor.
The destructor is only one way to destroy the object create by constructor. Hence destructor can-not be overloaded.
Syntax:
Syntax for defining the destructor within the class ~ () {
}
Syntax for defining the destructor outside the class : : ~ () {
}