home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH06 / A06151.WAV (.mp3) < prev    next >
Waveform Audio File Format  |  1993-10-21  |  291.5 KB  |  1 channel  |  11,025 sample rate  |  27 seconds
Transcription: 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.