Search:

Type: Posts; User: shamman84

Search: Search took 0.33 seconds.

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

    Norm you are BRILLIANT thankyou for all of your help here is the code do you have any further pointers ?

    public Fraction add(Fraction f)
    {
    int n,d;
    if(denominator ==...
  2. Re: Using a method to add two classes and produce a third

    What is my method returning can it return a new instance of the class if so what is the syntax ? public ___ add(Fraction a)
  3. Re: Using a method to add two classes and produce a third

    Thanks for the response Norm , i know how to create the instances im just having trouble understanding how my method is taking the values from both classes and producing a new instance with the new...
  4. Using a method to add two classes and produce a third

    Hey community i was assigned a home work asking me to create a method to add two instances of a fraction object and have the output be a new instance .


    here is the prompt i was given
    ...
Results 1 to 4 of 4