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