All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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");
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy