|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object demo.Elukat.Kissa
public static class Elukat.Kissa
Kissa-luokka jossa on oma ääntele-metodi
Field Summary | |
---|---|
private java.lang.String |
nimi
|
private double |
paino
|
Constructor Summary | |
---|---|
Elukat.Kissa(java.lang.String nimi,
double paino)
Alustetaan kissa |
Method Summary | |
---|---|
void |
aantele()
Kissa ääntelee sanomalla Miauu |
void |
tulosta()
Tulostetaan kissan tiedot |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final java.lang.String nimi
private final double paino
Constructor Detail |
---|
public Elukat.Kissa(java.lang.String nimi, double paino)
nimi
- kissan nimipaino
- kissan painoMethod Detail |
---|
public void aantele()
aantele
in interface Elukat.ElainRajapinta
public void tulosta()
tulosta
in interface Elukat.ElainRajapinta
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |