home *** CD-ROM | disk | FTP | other *** search
- Suppose you are writing an educational program to teach children
- about arithmetic and fractions. Unfortunately, computers do not
- support fractions. One solution would be for you to define a
- class for fractions. This class could store, operate on, and
- display the numerator and denominator of each number. Numbers
- such as 1/2, -2/3, 10/4, and 1 3/5 are objects of the fraction
- type.
-