home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH10 / A10193.TXT < prev    next >
Encoding:
Text File  |  1993-10-07  |  495 b   |  9 lines

  1. Four constructors are defined for the Fraction class.  The first
  2. is a user-defined default constructor.  It creates a Fraction
  3. with the initial value of 0/1.  The second constructor has two
  4. integer arguments.  The second argument is optional.  It can
  5. convert an integer to a Fraction, or construct a Fraction from a
  6. specified numerator and denominator.  The third constructor
  7. converts a floating point value to a fraction.  The forth
  8. constructor makes a copy of another Fraction object.
  9.