|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--Circle
A class that manages a circle given the radius.
| Constructor Summary | |
Circle(double radius)
Create a new circle object with the specified radius. |
|
| Method Summary | |
double |
getArea()
Return the area of the circle. |
double |
getPerimeter()
Return the perimeter of the circle. |
double |
getRadius()
Return the radius of the circle. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public Circle(double radius)
radius - radius of the circle being created. Must be
positive and greater than 0.| Method Detail |
public double getRadius()
public double getPerimeter()
public double getArea()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||