edu.pdx.cs.joy.lang.Duck Maven / Gradle / Ivy
The newest version!
package edu.pdx.cs.joy.lang;
/**
* This class represents a duck. Ducks fly.
*/
public class Duck extends Bird implements Flies {
public Duck(String name) {
this.name = name;
}
public String says() {
return "Quack";
}
public void fly() {
System.out.println("I'm flying");
}
}