jwllorens:
When it goes out of scope, wont the default destructor be called?
For statically allocated objects the default destructor is called when they go out of scope. Dynamically allocated objects remains in memory for no reason - even if out of scope. Another reason not to use dynamic allocation unless anything else is impossible ![]()