Write any two characteristics of destructor.
Characteristics:
1. It is used to destroy objects created by a constructor.
2. Name of destructor and name of the class is same.
3. Its name is preceded with tilde (~) symbol.
4. It never takes any argument.
5. It does not return any value.
6. It is invoked implicitly by the compiler upon exit from the program (or block or function) i.e when scope of object is over.