Class Oyster

java.lang.Object
  |
  +--Animal
        |
        +--Sessile
              |
              +--LongLivedSessile
                    |
                    +--Oyster

public class Oyster
extends LongLivedSessile

This class provides ability to print O for Oyster objects and creates new Oyster objects for reproduction


Constructor Summary
Oyster()
           
 
Method Summary
 LongLivedSessile getNewLongLivedSessile()
          provides new Oyster object for reproduction function in ancestor class
 char getPrintChar()
          provides print character for Oyster object
 
Methods inherited from class LongLivedSessile
laysEggs
 
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

Oyster

public Oyster()
Method Detail

getPrintChar

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

getNewLongLivedSessile

public LongLivedSessile getNewLongLivedSessile()
provides new Oyster object for reproduction function in ancestor class
Returns:
LongLivedSessile reference to new Oyster object