Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
A
B
C
D
E
G
M
N
P
S
T
A
Animal
- interface
Animal
.
This interface specifies the behavior that a class must implement in order to be considered a real Animal.
B
BasicAnimal
- class
BasicAnimal
.
The base class for several types of Animals.
BasicAnimal(String, double, double)
- Constructor for class
BasicAnimal
Create a new BasicAnimal, using supplied parameter values.
C
Cat
- class
Cat
.
One of several animal types.
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.
currentWeight
- Variable in class
BasicAnimal
the weight of this animal in pounds.
D
dine()
- Method in class
PetList
Everybody in the set eats a large meal.
Dog
- class
Dog
.
One of several animal types.
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 interface
Animal
Eat some goodies.
eat(double)
- Method in class
BasicAnimal
Eat some goodies.
G
getMealSize()
- Method in interface
Animal
get the meal size defined for this animal.
getMealSize()
- Method in class
BasicAnimal
get the meal size defined for this animal.
M
main(String[])
- Static method in class
Cat
Run this animal through a typical day.
main(String[])
- Static method in class
Dog
Run this animal through a typical day.
main(String[])
- Static method in class
PetList
This is a simple test harness for this class.
main(String[])
- Static method in class
Sparrow
Run this animal through a typical day.
mealSize
- Variable in class
BasicAnimal
the serving size of one meal for this animal in pounds.
N
name
- Variable in class
BasicAnimal
the name of this animal.
noise()
- Method in interface
Animal
Provide this animal with a voice.
noise()
- Method in class
Cat
Provide this animal with an appropriate voice.
noise()
- Method in class
Dog
Provide this animal with an appropriate voice.
noise()
- Method in class
Sparrow
Provide this animal with an appropriate voice.
P
PetList
- class
PetList
.
This class is a collection of animals of various types.
PetList(double)
- Constructor for class
PetList
This default constructor creates the new animal objects, using the "new" operator and the appropriate constructors.
S
sleep()
- Method in interface
Animal
Provide this animal with a way to rest when weary.
sleep()
- Method in class
BasicAnimal
Provide this animal with a way to rest when weary.
sleep()
- Method in class
PetList
Everybody in the set sleeps it all off.
sleep()
- Method in class
Sparrow
Provide this animal with a way to rest when weary.
snack()
- Method in class
PetList
Everybody in the set eats a small meal.
Sparrow
- class
Sparrow
.
One of several animal types.
Sparrow(String)
- Constructor for class
Sparrow
Create a new Sparrow with default characteristics.
Sparrow(String, double, double)
- Constructor for class
Sparrow
Create a new Sparrow, using supplied parameter values.
speak()
- Method in class
PetList
This method calls the noise-making method for each animal object.
T
toString()
- Method in class
BasicAnimal
print information about this animal.
A
B
C
D
E
G
M
N
P
S
T
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES