home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH06 / A06092.WAV (.mp3) < prev    next >
Waveform Audio File Format  |  1993-10-21  |  348.4 KB  |  1 channel  |  11,025 sample rate  |  32 seconds
Transcription: 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 constructor. The phonebook example in Chapter 5 used a compiler supplied default constructor.