edu.pdx.cs399J.lang
Class Duck
java.lang.Object
edu.pdx.cs399J.lang.Animal
edu.pdx.cs399J.lang.Bird
edu.pdx.cs399J.lang.Duck
- All Implemented Interfaces:
- Flies
public class Duck
- extends Bird
- implements Flies
This class represents a duck. Ducks fly.
| Fields inherited from class edu.pdx.cs399J.lang.Animal |
name |
|
Method Summary |
void |
fly()
|
String |
says()
Returns the sound that this animal makes. |
Duck
public Duck(String name)
says
public String says()
- Description copied from class:
Animal
- Returns the sound that this animal makes.
- Specified by:
says in class Animal
fly
public void fly()
- Specified by:
fly in interface Flies
Copyright © 2000-2009 Portland State University. All Rights Reserved.