Object Oriented Programming2080.110 marksInitialization of class objects
What is destructor? List its characteristics. Explain the use of default copy constructor with an appropriate example.
What is destructor? List its characteristics. Explain the use of default copy constructor with an appropriate example.[10]
--- A destructor is a special member function of a class that destructs or deletes an object and performs cleanup operations (such as releasing memory) when the object is no longer needed. A destructor is called automatically when: - The function ends (object goes out of scope of a function) - Th...