Q. Which of the following is true about destructors in C++?
β
Correct Answer: (B)
They have the same name as the class preceded by a tilde (~)
Explanation: Destructors in C++ have the same name as the class but are prefixed with a tilde (~).