|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--Bird
One of several animal types, in this case, a avian creature.
| Constructor Summary | |
Bird(java.lang.String theName)
Create a new Bird with default characteristics. |
|
Bird(java.lang.String theName,
double serving,
double weight)
Create a new Bird, using supplied parameter values. |
|
| Method Summary | |
void |
eat(double pounds)
Eat some goodies. |
double |
getCurrentWeight()
get the current weight of this animal. |
double |
getMealSize()
get the meal size defined for this animal. |
java.lang.String |
getName()
get the name of this animal. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Bird(java.lang.String theName)
theName - name of this animal
public Bird(java.lang.String theName,
double serving,
double weight)
theName - name of this animalserving - the size of a single meal for this animal in poundsweight - the initial weight of this animal in pounds| Method Detail |
public void eat(double pounds)
pounds - the number of pounds of food provided.public double getMealSize()
public double getCurrentWeight()
public java.lang.String getName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||