|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectTriangolo
public class Triangolo
descrive un triangolo
| Constructor Summary | |
|---|---|
Triangolo(int la,
int lb,
int lc)
Construttore della classe Triangolo |
|
| Method Summary | |
|---|---|
double |
area()
restituisce il valore dell'area del triangolo. |
int |
perimetro()
restituisce il valore del perimetro del triangolo. |
java.lang.String |
toString()
restituisce una stringa contenente una descrizione testuale dell'oggetto nel formato "triangolo di lati a, b, c", dove a, b e c sono i valori delle lunghezza dei lati del triangolo. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Triangolo(int la,
int lb,
int lc)
la - lato alb - lato blc - lato c| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic int perimetro()
public double area()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||