home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH10 / A10211.TXT < prev    next >
Encoding:
Text File  |  1993-09-24  |  336 b   |  7 lines

  1. Four arithmetic operators have been overloaded.  They have been
  2. implemented as friends for mixed-mode arithmetic.  For example, if
  3. "a" is a Fraction object, the expression "2 + a" has the same
  4. effect as "a + 2".  If these operators were members of the
  5. Fraction class, the first operand of each would have to be a
  6. Fraction object.
  7.