You're close with your '+' function, but you're adding the fraction to itself. I think:

will work. The left side of the + sign should be able to be represented by the 'private' variables of your class. I did the rational class about two months ago, and the good news is once you get one to work you'll be able to do the rest in no time.Code:value.numerator = (numerator * rat.denominator) + (rat.numerator * denominator); value.denominator = denominator * rat.denominator;