home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH06 / A062026.TXT < prev    next >
Encoding:
Text File  |  1993-10-21  |  381 b   |  7 lines

  1. Here, function invert() is called for the Fraction object "y".
  2. This statement prints the sum of "x" and the inverted "y".  Notice
  3. that the return value can be used in a larger expression.  By the
  4. way, this statement works only if the plus and output operators
  5. have been redefined for the Fraction class.  How to redefine
  6. operators is discussed in the chapter on overloading.
  7.