home *** CD-ROM | disk | FTP | other *** search
- The destructor for a class cannot have a return value and has no
- explicit arguments. Its purpose is to perform whatever cleanup is
- required when an object of a class goes out of scope. In this
- example the destructor prints a message. If no special action is
- required, the default destructor supplied by the compiler may be
- adequate. However, explicitly coding a destructor is a good
- programming practice.
-