home *** CD-ROM | disk | FTP | other *** search
- In this definition of the Fraction class, the functions print()
- and display() do the same thing. The function print() is declared
- to be a friend of the class and, therefore, can access all public
- and private members of the Fraction class. Notice how the
- function print() uses the private members num and denom of the
- Fraction class.
-