1)what u should do is have a member function called add_fract(Fraction ftoadd). this function would be used as follows:
Fraction fract(3,4), other_fract(5,6);
fract.add_fract(other_fract);
then this would add other_fract to fract. you also need to add a 'get' method to your class, something that will return the two private members num and denom.
2)get/set methods!
3)i dont understand what you mean?
Reputation Points: 47
Solved Threads: 2
Junior Poster in Training
Offline 77 posts
since Mar 2004