Rational numbers are numbers which can be represented as fractions. They have an integer numerator and denominator, where the denominator is not allowed to be 0. You are given a base class (superclass) which your Rational class will be based on. You are given the header file for the class you are writing. You are also given the code for a testing program which should produce the sample output included later in this page.
This is a large and complex assignment - but a lot of it is repetitive. We will be doing a few small pieces of the implementation during classroom demonstration of some of these concepts. I would suggest you make good friends with someone in the class if you miss that class session so you can get the notes/code. If you find that any one of the functions you are writing gets to ten lines in length, then please ask for assistance. Most of the functions should be one to three lines of code within their function body. A few functions (gcd(int,int), setNums(int,int), operator<<, operator>>) will probably be five to eight lines of code.