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...
Type: Posts; User: jps
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...
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;