As mentioned earlier in this chapter, a major advantage of streams over the old I/O mechanism of C
is the possibility that the stream mechanism can be extended to user-defined types. To do this, you
must overload operators >. This is demonstrated using a class for fractions in the following
subsection.