Search:

Type: Posts; User: jps

Search: Search took 0.09 seconds.

  1. Replies
    23
    Views
    1,741

    Re: Working with methods and constructors

    What do you mean "doesn't work"?
    Do you get the wrong output? Does it even compile still?
    Explain what it does do and what it should do.
    Also it may be time to post the newest version of the code...
  2. Replies
    23
    Views
    1,741

    Re: Working with methods and constructors

    MyClass myClassObject = new MyClass();
    myClassObject.accessMyClassMethod();
    vs

    MyClassName.accessMyStaticClassMethod();Making a method static gives access to the method without creating an...
  3. Replies
    23
    Views
    1,741

    Re: Working with methods and constructors

    No value was given from a constructor though. Rational b3 = b1.add(b2); The final result is that b3 is given a value, but the actual work is done by the method call to the existing b1. b1.add(b2)...
Results 1 to 3 of 3