public abstract class Duck extends java.lang.Object
Constructor and Description |
---|
Duck() |
Modifier and Type | Method and Description |
---|---|
void |
performFly() |
void |
performQuack() |
void |
setFlyBehavior(FlyBehavior fb) |
void |
setQuackBehavior(QuackBehavior qb) |
void |
swim() |
public Duck()
public void setFlyBehavior(FlyBehavior fb)
public void setQuackBehavior(QuackBehavior qb)
public void performFly()
public void performQuack()
public void swim()