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

  1. One of the most elegant features of C++ classes is the ability to
  2. overload the built-in operators so that objects of user-defined
  3. types can be manipulated much like objects of built-in types.
  4. Here, the overloaded output operator is declared to be a friend.
  5. The first argument of this operator is an output stream and its
  6. second argument is a Fraction object.
  7.