Class Duck

All Implemented Interfaces:
Flies

public class Duck extends Bird implements Flies
This class represents a duck. Ducks fly.
  • Constructor Details

  • Method Details

    • 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