MathWorks Interview Question

why virtual destructor needed?