home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH05 / A051222.TXT < prev    next >
Encoding:
Text File  |  1993-11-23  |  458 b   |  8 lines

  1. The data members of this class are two integers.  The integer
  2. "num" represents the numerator of a Fraction, and the integer
  3. "denom" represents the denominator.  From this information, you
  4. can deduce some, but not all, implementation details of the class.
  5. You cannot tell how the sign is stored, or if Fractions have been
  6. reduced to their simplest form.  For example, you cannot tell if
  7. -4/6 is stored as -4 over 6, 4 over -6, -2 over 3, or 2 over -3.
  8.