Class Ostrich

java.lang.Object
  |
  +--Animal
        |
        +--Bird
              |
              +--Ostrich

public class Ostrich
extends Bird

A class for ostriches. A ostrich is a bird that doesn't fly or make any noise. It gets around by running.

Since:
JDK1.2

Constructor Summary
Ostrich(java.lang.String name)
          Creates a ostrich.
 
Method Summary
 java.lang.String poke()
          Pokes the ostrich, which results in no noise.
 
Methods inherited from class Animal
feed, getName, getWeight, poop, sleep, toString, wakeup
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Ostrich

public Ostrich(java.lang.String name)
Creates a ostrich. Ostriches weigh 110 kilograms, eat grass, and get around by running (not flying!).

Parameters:
name - the ostrich's name ("Ozzy", "Frederico", etc.)
Method Detail

poke

public java.lang.String poke()
Pokes the ostrich, which results in no noise.

Specified by:
poke in class Animal
Returns:
the empty string, representing no noise