home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH06 / A06092.TXT < prev    next >
Encoding:
Text File  |  1993-08-17  |  505 b   |  9 lines

  1. When the scope of an object of built-in type ends, the storage it
  2. occupied is released.  When the scope of an object of user-defined
  3. type ends, a destructor function is called to destroy the object.
  4. Destroying an object can involve deallocating memory and releasing
  5. other system resources associated with the object.  If no
  6. destructor is included in the class definition, the compiler
  7. supplies a default destructor.  The phonebook example in Chapter 5
  8. used a compiler-supplied default destructor.
  9.