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