Pergunta de entrevista da empresa AMD

In C++, what’s a virtual destructor and when is it needed?