Pergunta de entrevista da empresa Luxoft

What is use of virtual destructors?

Resposta da entrevista

Sigiloso

6 de fev. de 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.