Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
B
C
D
E
G
M
P
R
S
B
Bird
- class
Bird
.
One of several animal types, in this case, a avian creature.
Bird(String)
- Constructor for class
Bird
Create a new Bird with default characteristics.
Bird(String, double, double)
- Constructor for class
Bird
Create a new Bird, using supplied parameter values.
C
Cat
- class
Cat
.
One of several animal types, in this case, a feline.
Cat(String)
- Constructor for class
Cat
Create a new Cat with default characteristics.
Cat(String, double, double)
- Constructor for class
Cat
Create a new Cat, using supplied parameter values.
D
dine()
- Method in class
PetSet
Everybody in the set eats a large meal.
Dog
- class
Dog
.
One of several animal types, in this case, a canine.
Dog(String)
- Constructor for class
Dog
Create a new Dog with default characteristics.
Dog(String, double, double)
- Constructor for class
Dog
Create a new Dog, using supplied parameter values.
E
eat(double)
- Method in class
Bird
Eat some goodies.
eat(double)
- Method in class
Cat
Eat some goodies.
eat(double)
- Method in class
Dog
Eat some goodies.
G
getCurrentWeight()
- Method in class
Bird
get the current weight of this animal.
getCurrentWeight()
- Method in class
Cat
get the current weight of this animal.
getCurrentWeight()
- Method in class
Dog
get the current weight of this animal.
getMealSize()
- Method in class
Bird
get the meal size defined for this animal.
getMealSize()
- Method in class
Cat
get the meal size defined for this animal.
getMealSize()
- Method in class
Dog
get the meal size defined for this animal.
getName()
- Method in class
Bird
get the name of this animal.
getName()
- Method in class
Cat
get the name of this animal.
getName()
- Method in class
Dog
get the name of this animal.
M
main(String[])
- Static method in class
PetSet
This is a simple test harness for this class.
P
PetSet
- class
PetSet
.
This class is a collection of animals of various types.
PetSet()
- Constructor for class
PetSet
This default constructor creates the new animal objects, using the "new" operator and the appropriate constructors.
R
reportWeights()
- Method in class
PetSet
Report the weight of each animal to the user by printing it on the screen.
S
snack()
- Method in class
PetSet
Everybody in the set eats a small meal.
B
C
D
E
G
M
P
R
S
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes