Original Post
Are virtual destructors chained like non virtual destructors? IE
struct A{
A() {}
virtual ~A() {}
};
struct B:public A{
B() {}
~B() {}
};
delete (new B);Will A::~A be called after B::~B is called? [edit] On a related note, SAMS Teach Yourself C++ in 21 Days says that if there is a virtual method, the destructor should almost certainly be virtual. Are there any possible exceptions to this?