Ubisoft interview question

Why would you put a virtual destructor?

Interview Answer

Anonymous

2 Feb 2023

To allow for any derived class to have it's destructor called when deleting a base class pointer