The destructor is a special member function whose name is same as the class name, but it is preceded by a tiled symbol(~).
Destructor destroys class objects created by constructor.
- A destructor is automatically executed when object goes out of the scope.
- A destructor does not have return type and not even void.
- Destructor can be virtual, but constructors can not .
- Only one destructor can be defined in a class.
- The destructor does not have any arguments.