home *** CD-ROM | disk | FTP | other *** search
- Here, function invert() is called for the Fraction object "y".
- This statement prints the sum of "x" and the inverted "y". Notice
- that the return value can be used in a larger expression. By the
- way, this statement works only if the plus and output operators
- have been redefined for the Fraction class. How to redefine
- operators is discussed in the chapter on overloading.
-