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