Search:

Type: Posts; User: PhHein

Search: Search took 0.09 seconds.

  1. Replies
    23
    Views
    1,742

    Re: Working with methods and constructors

    You have to imploement it in Test if you insist on calling it that way. Another option is to make it public static and call it with:

    Rational.compareRational(r1, r2);
  2. Replies
    23
    Views
    1,742

    Re: Working with methods and constructors

    That is not an implementation pof the Comparable interface! Have a look at the method name and signature.
  3. Replies
    23
    Views
    1,742

    Re: Working with methods and constructors

    You're extending Number, which is abstract. So you have to implement it's methods. You also forgot to implement Comparable.
Results 1 to 3 of 3