Q. Which of the following is the correct way to define a destructor in C++?
β
Correct Answer: (A)
~MyClass() { }
Explanation: The correct way to define a destructor is '~MyClass() { }'.