- Destructor is member function of a class having same name as of class prefixed with tild sign(~).
- Destructor is automatically called when an object is destroyed.
- A destructor contains no argument and no return value and not even void.
- Destructor cleans up the memory area of object which is not longer required.
Program to show use of destrcutor in class
cout<<"\na = "<<a;
cout<<"\nb = "<<b;