Class Bird

java.lang.Object
  |
  +--Animal
        |
        +--Bird
Direct Known Subclasses:
Ostrich, Robin

public abstract class Bird
extends Animal

An abstract class for birds

Since:
JDK1.2

Constructor Summary
Bird(java.lang.String name, double weight, java.lang.String food)
          Creates an awake bird with a specific name, weight, and favorite food, that gets around by flying.
Bird(java.lang.String name, double weight, java.lang.String food, java.lang.String motion)
          Creates an awake bird with a specific name, weight, and favorite food, that gets around by a specific method.
 
Methods inherited from class Animal
feed, getName, getWeight, poke, poop, sleep, toString, wakeup
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Bird

public Bird(java.lang.String name,
            double weight,
            java.lang.String food)
Creates an awake bird with a specific name, weight, and favorite food, that gets around by flying.


Bird

public Bird(java.lang.String name,
            double weight,
            java.lang.String food,
            java.lang.String motion)
Creates an awake bird with a specific name, weight, and favorite food, that gets around by a specific method.