|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectclasswork.Circle
public class Circle
Models a circle.
| Field Summary | |
|---|---|
private int |
radius
The distance between the center of the circle and its edge. |
| Constructor Summary | |
|---|---|
Circle(int radius)
|
|
| Method Summary | |
|---|---|
double |
getArea()
|
double |
getPerimeter()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private int radius
| Constructor Detail |
|---|
public Circle(int radius)
radius - The distance between the center of the circle and its edge.| Method Detail |
|---|
public double getArea()
public double getPerimeter()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||