A Fraction Class

Assignment

You are to write a simple Fraction class that implements simple fractions, with a numerator and denominator. Denominators must be positive (not negative, not 0). Numerators can be positive, negative or 0. Keep these in mind with your constructors and other methods.

 

Your Fraction class should provide the following constructors

Your Fraction class should provide the following methods:

You also need to create a test class, TestFraction, that provides a main to appropriately test your methods. Do this early and test often.