|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--PetSet
This class is a collection of animals of various types. It manages the collection by having all the various animals do various things upon request.
| Constructor Summary | |
PetSet()
This default constructor creates the new animal objects, using the "new" operator and the appropriate constructors. |
|
| Method Summary | |
void |
dine()
Everybody in the set eats a large meal. |
static void |
main(java.lang.String[] args)
This is a simple test harness for this class. |
void |
reportWeights()
Report the weight of each animal to the user by printing it on the screen. |
void |
snack()
Everybody in the set eats a small meal. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PetSet()
| Method Detail |
public void snack()
public void dine()
public void reportWeights()
public static void main(java.lang.String[] args)
args - ignored
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||