MathWorks interview question

why virtual destructor needed?