Class Tiger

java.lang.Object
  extended by Thing
      extended by Creature
          extended by Tiger

public class Tiger
extends Creature

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

Tiger

public Tiger(java.lang.String name)
Create a Tiger with a name.

Parameters:
name - -- the given name of this Tiger
Method Detail

move

public void move()
When asked to move, a Tiger prints '{name} {class} has just pounced.' (the single quotes are NOT part of the output.)

Specified by:
move in class Creature