Thanks Ben,
You mean if the destructors are virtual, even if they do not have explicit
invocation relationship in code (e.g. the most derived destructor will call
the second-last destructor explicitly in source codes), the second-last
destructor, the third-last destructor and so forth will be invoked
automatically?
(If we delete an object with a virtual destructor, through a base instance,
the most derived destructor will be called first, then the second-last
destructor, the third-last destructor and so froth -- right up to the base
destructor. All are automatically invoked without invocation relationship
explicitly in source codes)
But if the destructor is not virtual, we do not have this feature?