adplus-dvertising
frame-decoration

Question

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

Answer: (a).A special function that is called to free the resources, acquired by the object

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which among the following describes a destructor?