home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH09 / A091525.TXT < prev    next >
Encoding:
Text File  |  1993-10-20  |  447 b   |  8 lines

  1. This line includes mixed mode arithmetic, in that a floating point
  2. value, 0.5, is subtracted from the Fraction object "y".  The
  3. floating point value is converted to a Fraction using a
  4. constructor provided by the Fraction class.  It is the second
  5. argument of the overloaded minus operator.  When a binary operator
  6. is implemented as a member function, only the second argument can
  7. be converted.  The first argument must be a Fraction object.
  8.