Beginner
C++
Q14 / 100
What is a destructor?
Correct! Well done.
Incorrect.
The correct answer is B) A function called automatically when an object goes out of scope to release resources
B
Correct Answer
A function called automatically when an object goes out of scope to release resources
Explanation
Destructors (~ClassName()) are called automatically when an object is destroyed, used to release heap memory, file handles, etc.
Progress
14/100