|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface specifies the behavior that a class must implement in order to be considered a real Animal.
Method Summary | |
void |
eat(double pounds)
Eat some goodies. |
double |
getMealSize()
get the meal size defined for this animal. |
void |
noise()
Provide this animal with a voice. |
void |
sleep()
Provide this animal with a way to rest when weary. |
Method Detail |
public void sleep()
public void eat(double pounds)
pounds
- the number of pounds of food provided.public double getMealSize()
public void noise()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |