edu.pdx.cs399J.lang
Class Sheep

java.lang.Object
  extended by edu.pdx.cs399J.lang.Animal
      extended by edu.pdx.cs399J.lang.Mammal
          extended by edu.pdx.cs399J.lang.Sheep

public class Sheep
extends Mammal

This class represents a Sheep.


Field Summary
 
Fields inherited from class edu.pdx.cs399J.lang.Animal
name
 
Constructor Summary
Sheep(String name)
           
 
Method Summary
 String says()
          Returns the sound that this animal makes.
 
Methods inherited from class edu.pdx.cs399J.lang.Mammal
giveMilk
 
Methods inherited from class edu.pdx.cs399J.lang.Animal
getName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Sheep

public Sheep(String name)
Method Detail

says

public String says()
Description copied from class: Animal
Returns the sound that this animal makes.

Specified by:
says in class Animal


Copyright © 2000-2009 Portland State University. All Rights Reserved.