|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Animal | +--MovingAnimal | +--FastMover | +--Shrimp
This class provides ability to print R for Shrimp objects, creates new Shrimp objects for reproduction, and initializes speed field for Shrimp objects
Method Summary | |
FastMover |
getNewFastMover()
provides new Shrimp object for reproduction function in ancestor class |
char |
getPrintChar()
provides print character for Shrimp object |
Methods inherited from class FastMover |
laysEggs,
makeMove |
Methods inherited from class MovingAnimal |
getDirection,
getSpeed,
setSpeed |
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 |
Method Detail |
public char getPrintChar()
public FastMover getNewFastMover()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |