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?
- A. Static member
- B. Composition over inheritance
- C. Access modifier
- D. Destructor ✓
Correct answer
D. Destructor
Explanation
Destructor refers to a special method automatically invoked when an object is destroyed, used to release resources.