How could we make it easier to print Fraction's?
Some possibilities:
- Write a non-member function in the test program:
void print(const Fraction& f);
- Write a member function, print, in the Fraction class:
class Fraction { ... void print(); ... };
- Write a non-member overloaded operator<< and have the Fraction class make it be a friend.
- Write a non-member overloaded operator<<