home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH06 / A06143.WAV (.mp3) < prev    next >
Waveform Audio File Format  |  1993-10-21  |  305.2 KB  |  1 channel  |  11,025 sample rate  |  28 seconds
Transcription: Very often, a constructor creates an object so that all or some of its data members reside in storage allocated from dynamic memory. Use of dynamic memory differs from the default method of storage allocation in that it is allocated and deallocated by explicit function calls in a C++ program rather than by the compiler. If a constructor for a class uses dynamic memory, the destructor must release that memory.