Search:

Type: Posts; User: Norm

Search: Search took 0.14 seconds.

  1. Re: Using a method to add two classes and produce a third

    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.
  2. Re: Using a method to add two classes and produce a third

    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...
  3. Re: Using a method to add two classes and produce a third

    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...
Results 1 to 3 of 3