|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Thing Creature Ant
public class Ant
Ant is a creature.
Constructor Summary | |
---|---|
Ant(java.lang.String name)
Create a Ant with a name. |
Method Summary | |
---|---|
void |
move()
When asked to move, an Ant prints '{name} {class} is crawling around.' (the single quotes are NOT part of the output.) |
Methods inherited from class Creature |
---|
eat, whatDidYouEat |
Methods inherited from class Thing |
---|
toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Ant(java.lang.String name)
name
- -- the given name of this AntMethod Detail |
---|
public void move()
move
in class Creature
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |