Questions Tagged [virtual-destructor]

A virtual destructor ensures a C++ object will correctly call the destructor of the most-derived class when a polymorphic object is deleted through a pointer to its base class.

Question is empty. Ask new Question

Popular Questions