A B C E F M T W

A

Ant - Class in <Unnamed>
Ant is a creature.
Ant(String) - Constructor for class Ant
Create a Ant with a name.

B

Bat - Class in <Unnamed>
Bat is a creature that knows how to fly.
Bat(String) - Constructor for class Bat
Create a Bat with a name.

C

Creature - Class in <Unnamed>
A Creature is a Thing that has specific, 'lively' behaviors.
Creature(String) - Constructor for class Creature
Create a Creature with a name.
CREATURE_COUNT - Static variable in class TestCreature
number of creatures to create

E

eat(Thing) - Method in class Bat
A Bat eats only Creatures in the same way that any Creature eats.
eat(Thing) - Method in class Creature
Creatures may be asked to eat various Things.
eat(Thing) - Method in class Fly
A Fly eats only Things; a fly will not eat anything that is a Creature.

F

fly() - Method in class Bat
When asked to fly, a Bat prints the message '{name} {class} is swooping through the dark.' (the single quotes are not part of the message.)
Fly - Class in <Unnamed>
Fly is a creature that knows how to fly.
Fly(String) - Constructor for class Fly
Create a Fly with a name.
fly() - Method in class Fly
When asked to fly, a Fly prints the message '{name} {class} is buzzing around in flight.' (the single quotes are not part of the message.)
fly() - Method in interface Flyer
Ask the Flyer to fly.
Flyer - Interface in <Unnamed>
Fly is the interface for flying.

M

main(String[]) - Static method in class TestCreature
TestCreature.main tests the hierarchy of Things and Creatures.
move() - Method in class Ant
When asked to move, an Ant prints '{name} {class} is crawling around.' (the single quotes are NOT part of the output.)
move() - Method in class Bat
When asked to move, a Bat flies.
move() - Method in class Creature
Tell the Creature to move.
move() - Method in class Fly
When asked to move, a Fly flies.
move() - Method in class Tiger
When asked to move, a Tiger prints '{name} {class} has just pounced.' (the single quotes are NOT part of the output.)

T

TestCreature - Class in <Unnamed>
TestCreature is a tester/demonstration program to exercise the Thing class hierarchy.
TestCreature() - Constructor for class TestCreature
 
Thing - Class in <Unnamed>
Thing is the top of a class hierarchy.
Thing(String) - Constructor for class Thing
 
THING_COUNT - Static variable in class TestCreature
number of things to create
Tiger - Class in <Unnamed>
Tiger is a creature that knows how to speak.
Tiger(String) - Constructor for class Tiger
Create a Tiger with a name.
toString() - Method in class Thing
Produce a String description of this instance.

W

whatDidYouEat() - Method in class Creature
Make the Creature tell what is in its stomach.

A B C E F M T W