Interface Animal

All Known Implementing Classes:
BasicAnimal

public interface Animal

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

sleep

public void sleep()
Provide this animal with a way to rest when weary.

eat

public void eat(double pounds)
Eat some goodies. There is some weight gain after eating.
Parameters:
pounds - the number of pounds of food provided.

getMealSize

public double getMealSize()
get the meal size defined for this animal.
Returns:
meal size in pounds

noise

public void noise()
Provide this animal with a voice.