home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH09 / A093721.TXT < prev    next >
Encoding:
Text File  |  1993-11-29  |  341 b   |  7 lines

  1. These lines are the declaration and definition of a friend member
  2. function that overloads the unary minus operator for use with the
  3. Fraction class.  Notice that the single argument of the
  4. operator-() is an object of the Fraction class.  The body of the
  5. function and the return value have the same form as in any
  6. user-defined function.
  7.