public class RedHeadDuck extends Duck
flyBehavior, quackBehavior
Constructor and Description |
---|
RedHeadDuck() |
Modifier and Type | Method and Description |
---|---|
void |
display() |
performFly, performQuack, setFlyBehavior, setQuackBehavior, swim
public RedHeadDuck()