Class Spider

java.lang.Object
  |
  +--Animal
        |
        +--Spider

public class Spider
extends Animal

Class Spider - write a description of the class here


Constructor Summary
Spider()
          Constructor for objects of class Spider
 
Method Summary
 void amputate(int howMany)
          amputate method
 String move()
          move method
 String toString()
          toString method
 
Methods inherited from class Animal
test
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Spider

public Spider()
Constructor for objects of class Spider
Method Detail

amputate

public void amputate(int howMany)
amputate method
Parameters:
howMany - how many legs to amputate

move

public String move()
move method
Overrides:
move in class Animal
Returns:
a text description of the motion

toString

public String toString()
toString method
Overrides:
toString in class Object
Returns:
a String representation of the Human


Generated by BlueJ