Search:

Type: Posts; User: jps

Search: Search took 0.27 seconds.

  1. Replies
    4
    Views
    1,361

    Re: Simple question regarding objects.

    Circle.getCircumference() would only work if getCircumference() was a static method of the Circle class. What you need is an object of that class, like:
    Circle myCircle = new Circle(8.0); Then you...
  2. Replies
    4
    Views
    1,361

    Re: Simple question regarding objects.

    Your constructor for the Circle class requires the radius and you did not supply one.




    Nothing really.
    Declare a variable:
    <type> <name>;
    int i;
    double d;
Results 1 to 2 of 2