Q. Which of the following is true about destructors in C++?
β
Correct Answer: (B)
A destructor has the same name as the class with a '~' prefix.
Explanation: In C++, a destructor has the same name as the class, preceded by a '~' symbol, and is called when an object is destroyed.