2076 5

Object Oriented Programming20765 marksInitialization of class objects

What is destructor? Write a program to show the destructor call such that it prints the message 'memory is released'.

What is destructor? Write a program to show the destructor call such that it prints the message 'memory is released'. [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 memory and other resources that were allocated to the object during its lifetime. Feature Description ------ Name Same as class name, ...

Up nextWhat is this pointer? How can we use it for name conflict resolution? Illustrate the use o