Object-Oriented Programming (OOP)

The concept in which a special method automatically invoked when an object is destroyed, used to release resources is best known as which of these terms?

Correct answer

D. Destructor

Explanation

Destructor refers to a special method automatically invoked when an object is destroyed, used to release resources.