0 8

Object Oriented Programming05 marksDestructor definition and characteristics

What is destructor? Discuss its characteristics with suitable example.

What is destructor? Discuss its characteristics with suitable example. [5]

A destructor is a special member function of a class that is automatically called when an object goes out of scope or is explicitly deleted. It is used to release resources (such as memory, file handles, etc.) that were acquired by the object during its lifetime. --- Characteristic --------------...

Up nextWrite a program to convert floating point value to object of distance class with data memb