Class Anemone

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

public class Anemone
extends ShortLivedSessile

This class provides ability to print A for anemone objects and creates new Anemone objects for reproduction


Constructor Summary
Anemone()
           
 
Method Summary
 ShortLivedSessile getNewShortLivedSessile()
          provides new Anemone object for reproduction function in ancestor class
 char getPrintChar()
          provides print character for Anemone 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

Anemone

public Anemone()
Method Detail

getPrintChar

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

getNewShortLivedSessile

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