Next: Forking Processes
Destructors remove the object and free the memory allocated for it.
- destructors are called automatically when the object is allocated
statically, even if there's dynamic allocation within the object
- destructors must be called explicitly (using delete) if the object
is allocated dynamically.