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

  1. The destructor for a class cannot have a return value and has no
  2. explicit arguments.  Its purpose is to perform whatever cleanup is
  3. required when an object of a class goes out of scope.  In this
  4. example the destructor prints a message.  If no special action is
  5. required, the default destructor supplied by the compiler may be
  6. adequate.  However, explicitly coding a destructor is a good
  7. programming practice.
  8.