Next: Forking Processes
Up: C++/C
Previous: Strings
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.
Chris Paciorek
2006-04-02