Hacker News new | ask | show | jobs
by tarmon 910 days ago
https://en.cppreference.com/w/cpp/language/destructor

Take a look at "Destruction sequence" but basically the destructors are chained together and called one after another to free all resources rather than forming one destructor for the derived object. That being said it is still effectively one object in memory.

1 comments

Thank you for the explanation and reference.