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 |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Spider
public Spider()
- Constructor for objects of class Spider
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