| Lecture 4 - Slide 11 : 40 |
Destructors are essential for resource management purposes in C++
Most classes do not need destructors
Destructors are called implicitly
Implementation of the destructor that reveal its activation. |
Illustration of destructor activation when automatic variables go out of scope . |
Actual program output. |