home *** CD-ROM | disk | FTP | other *** search
- Three of the comparison operators have been implemented as member
- functions. The advantage of member functions is that they may be
- inherited by classes derived from this Fraction class. The
- disadvantage is that their first operand must be a Fraction
- object. For example, "a < 2" works, but "2 < a" is not resolved
- by the compiler.
-