demo
Class Elain.Kissa

java.lang.Object
  extended by demo.Elain
      extended by demo.Elain.Kissa
Enclosing class:
Elain

public static class Elain.Kissa
extends Elain

Kissa-luokka jossa on oma ääntele-metodi

Author:
vesal

Nested Class Summary
 
Nested classes/interfaces inherited from class demo.Elain
Elain.Kissa, Elain.Koira, Elain.Kotka
 
Constructor Summary
Elain.Kissa(java.lang.String nimi, double paino)
          Alustetaan kissa
 
Method Summary
 void aantele()
          Kissa ääntelee sanomalla Miauu
 
Methods inherited from class demo.Elain
tulosta
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Elain.Kissa

public Elain.Kissa(java.lang.String nimi,
                   double paino)
Alustetaan kissa

Parameters:
nimi - kissan nimi
paino - kissan paino
Method Detail

aantele

public void aantele()
Kissa ääntelee sanomalla Miauu

Overrides:
aantele in class Elain