Which among the following describes a destructor?
(a) A special function that is called to free the resources, acquired by the object
(b) A special function that is called to delete the class
(c) A special function that is called anytime to delete an object
(d) A special function that is called to delete all the objects of a class
I have been asked this question during an interview.
The above asked question is from Destructors topic in section Constructors and Destructors of Object Oriented Programming