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

  1. Three of the comparison operators have been implemented as member
  2. functions.  The advantage of member functions is that they may be
  3. inherited by classes derived from this Fraction class.  The
  4. disadvantage is that their first operand must be a Fraction
  5. object.  For example, "a < 2" works, but "2 < a" is not resolved
  6. by the compiler.
  7.