Class Ant

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

public class Ant
extends Creature

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

Ant

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

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

move

public void move()
When asked to move, an Ant prints '{name} {class} is crawling around.' (the single quotes are NOT part of the output.)

Specified by:
move in class Creature