Look at how the call is made:
Fraction r3 = r1.add( r2 );"
What data type is r3?
That is what the add method must return.
Type: Posts; User: Norm
Look at how the call is made:
Fraction r3 = r1.add( r2 );"
What data type is r3?
That is what the add method must return.
Take it one step at a time.
Where are the values located?
One is local,
the other is in the passed object. You'll need to call a method to get it.
How are the two values added together to get...
Do you know how to create an instance of a class? Hint: Use the new statement.
Take values from the current class and the passed argument, create an instance of the class with those values and...