home *** CD-ROM | disk | FTP | other *** search
- This is the part of the Fraction class definition that declares
- the input and output operators to be friends of the Fraction
- class. The operators are declared as friends rather than member
- functions so that they have the same syntax as the operators for
- built-in types. If they were declared as member functions, they
- would have to take an object of the class as their first operand.
- As friends, they can be defined to take an istream object or an
- ostream object as their first argument.
-