001package headfirst.strategy;
002
003public class DecoyDuck extends Duck {
004 public DecoyDuck() {
005 setFlyBehavior(new FlyNoWay());
006 setQuackBehavior(new MuteQuack());
007 }
008 public void display() {
009 System.out.println("I'm a duck Decoy");
010 }
011}