|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Thing Creature Tiger
public class Tiger
Tiger is a creature that knows how to speak.
Constructor Summary | |
---|---|
Tiger(java.lang.String name)
Create a Tiger with a name. |
Method Summary | |
---|---|
void |
move()
When asked to move, a Tiger prints '{name} {class} has just pounced.' (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 Tiger(java.lang.String name)
name
- -- the given name of this TigerMethod Detail |
---|
public void move()
move
in class Creature
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |