Search:

Type: Posts; User: aussiemcgr

Search: Search took 0.07 seconds.

  1. Re: Cannot call method because it is non-static

    You could put it in both if statements, or you could put the if statement in your main before you even call the getRoot methods. You can get the discriminant with your getter method:...
  2. Re: Cannot call method because it is non-static

    I think you meant to invoke the getRoot1() method on your created QuadraticEquation q1 object. Correct?
    When you have a main in a class and you attempt to call a method in the class directly, that...
Results 1 to 2 of 2