Q7
What is the role of a virtual destructor in C++?
A.
Ensures proper destruction of derived class objects when deleted through a base class pointer.
AnswerB.
Ensures proper destruction of base class objects.
C.
Ensures proper memory allocation for virtual functions.
D.
Ensures proper memory alignment for polymorphic objects.
Answer: Option A
Solution
Answer: Option A
No explanation is given for this question Let's Discuss on Board