Object-Oriented Programming In C++: Destructor
Contents:
1. Destructor.
2. When Constructors and Destructors are Called.
Destructor
Is a member function in the class, which has the following characteristics: 1. It has the same name as the class preceded with a tilde '~'. For example, the destructor for class Time is declared:~Time()
2. It doesn't return any type.
3. It is called when objects are destroyed to release all allocated resources.
4.