Class Human

java.lang.Object
  |
  +--Animal
        |
        +--Mammal
              |
              +--Human
All Implemented Interfaces:
Noisy

public class Human
extends Mammal

A class for humans. A human is a mammal that makes an "Ouch" noise and travels on two legs.

Since:
JDK1.2

Constructor Summary
Human(java.lang.String name)
          Creates a human.
 
Method Summary
 java.lang.String getNoise()
          Gets the noise made by a human.
 
Methods inherited from class Mammal
poke, toString
 
Methods inherited from class Animal
feed, getName, getWeight, poop, sleep, wakeup
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Human

public Human(java.lang.String name)
Creates a human. Humans weigh 70 kilograms, eat tofu, and travel on two legs.

Parameters:
name - the human's name ("Simon", "Gertrude", etc.)
Method Detail

getNoise

public java.lang.String getNoise()
Gets the noise made by a human. Humans go "Ouch".

Returns:
the noise