home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH06 / A06112.TXT < prev    next >
Encoding:
Text File  |  1993-11-23  |  442 b   |  8 lines

  1. Here, the object "c" is a Fraction with an initial value of -5/4.
  2. The three elements in the array "d" are Fractions with initial
  3. values of 1/4, 1/2, and 3/4.  The conversion constructor is
  4. called to create a temporary object of type Fraction on the
  5. right-hand side of each assignment.  The value of the temporary
  6. Fraction object is assigned to the Fraction object declared
  7. on the left-hand side, and the temporary object is discarded.
  8.