home *** CD-ROM | disk | FTP | other *** search
- 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.
-