home *** CD-ROM | disk | FTP | other *** search
- When the scope of an object of built-in type ends, the storage it
- occupied is released. When the scope of an object of user-defined
- type ends, a destructor function is called to destroy the object.
- Destroying an object can involve deallocating memory and releasing
- other system resources associated with the object. If no
- destructor is included in the class definition, the compiler
- supplies a default destructor. The phonebook example in Chapter 5
- used a compiler-supplied default destructor.
-