|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--Shape
|
+--Circle
| Constructor Summary | |
Circle(double r)
costruisce un cerchio a partire dal suo raggio. |
|
| Method Summary | |
double |
calculateArea()
calcola l'area della figura su cui è invocato. |
double |
calculatePerimeter()
calcola il perimetro della figura su cui è invocato. |
void |
draw()
scrive un messaggio che identifica la figura. |
| Methods inherited from class Shape |
compareTo |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Circle(double r)
r - raggio del cerchio.| Method Detail |
public void draw()
Shape
draw in class Shapepublic double calculateArea()
Shape
calculateArea in class Shapepublic double calculatePerimeter()
Shape
calculatePerimeter in class Shape
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||