Luxoft Interview Question

What is use of virtual destructors?

Interview Answer

Anonymous

Feb 6, 2023

They are used to ensure that all child objects are destroyed when a parent object is used to hold a pointer to a child class.