GE HealthCare interview question

when do you use a virtual destructor

Interview Answer

Anonymous

Feb 7, 2013

Virtual destructors are used in cases where you need to delete an instance of a derived class through a base class pointer. See: http://blogs.msdn.com/b/oldnewthing/archive/2004/05/07/127826.aspx