demo
Class Elain.Kotka

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

public static class Elain.Kotka
extends Elain

Kotka-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.Kotka(java.lang.String nimi, double paino)
          Alustetaan kotka
 
Method Summary
 void aantele()
          Kotka ääntelee sanomalla Kriik kriik
 
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.Kotka

public Elain.Kotka(java.lang.String nimi,
                   double paino)
Alustetaan kotka

Parameters:
nimi - kotkan nimi
paino - kotkan paino
Method Detail

aantele

public void aantele()
Kotka ääntelee sanomalla Kriik kriik

Overrides:
aantele in class Elain