home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH06 / A06122.WAV (.mp3) < prev    next >
Waveform Audio File Format  |  1993-10-21  |  278.9 KB  |  1 channel  |  11,025 sample rate  |  26 seconds
Transcription: Here, the copy constructor for the fraction class creates the object y and assigns the value of each data member of the fraction object x to the respective data member in the fraction y. You can write a copy constructor to perform any activities associated with duplicating an object. For example, making a copy might involve file I O or allocating more dynamic memory.