Class Hydroid

java.lang.Object
  |
  +--Animal
        |
        +--Sessile
              |
              +--ShortLivedSessile
                    |
                    +--Hydroid

public class Hydroid
extends ShortLivedSessile

This class provides ability to print Y for Hydroid objects and creates new Hydroid objects for reproduction


Constructor Summary
Hydroid()
           
 
Method Summary
 ShortLivedSessile getNewShortLivedSessile()
          provides new Hydroid object for reproduction function in ancestor class
 char getPrintChar()
          provides print character for Hydroid object
 
Methods inherited from class ShortLivedSessile
buds
 
Methods inherited from class Sessile
makeMove
 
Methods inherited from class Animal
getAge, getmaxAge, incrAge, setmaxAge, timeToDie
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Hydroid

public Hydroid()
Method Detail

getNewShortLivedSessile

public ShortLivedSessile getNewShortLivedSessile()
provides new Hydroid object for reproduction function in ancestor class
Overrides:
getNewShortLivedSessile in class ShortLivedSessile
Returns:
ShortLivedSessile reference to new Hydroid object`

getPrintChar

public char getPrintChar()
provides print character for Hydroid object
Overrides:
getPrintChar in class Animal
Returns:
char 'Y' for Hydroid