Hi Vee,
Your code convention is wonderful.You wrote the code as a great developer.
Come to the point,
Stein and david are correct.You are treat the primitives as a values and
with out reference of class RationalNumber how can you call the method of the RationalNumber.
so try to access the methods like reciprocal... by using the object of RationalNumber