Destructors are used for destroying the objects that have been created by the constructor. Destructor is a member function whose name is the same as the class name but preceded by a tilde(~). The statement shown in the figure, defines the destructor for the class bill.
General Format: ~bill(){}


