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