|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--prog.utili.Figura
|
+--prog.utili.Rettangolo
|
+--prog.utili.Quadrato
Le sue istanze rappresentano quadrati.
| Constructor Summary | |
Quadrato(double x)
Costruisce un oggetto che rappresenta un quadrato di lato uguale a quello fornito come argomento. |
|
| Method Summary | |
double |
getLato()
Restituisce il lato del quadrato rappresentato dall'oggetto che esegue il metodo. |
java.lang.String |
toString()
Restituisce una stringa che descrive il quadato rappresentato dall'oggetto che esegue il metodo. |
| Methods inherited from class prog.utili.Rettangolo |
equals, equals, getAltezza, getArea, getBase, getPerimetro |
| Methods inherited from class prog.utili.Figura |
haAreaMaggiore, haPerimetroMaggiore |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Quadrato(double x)
x - il lato.| Method Detail |
public double getLato()
public java.lang.String toString()
toString in class Rettangolo
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||