001package headfirst.strategy;
002
003public class MallardDuck extends Duck {
004
005        public MallardDuck() {
006
007                quackBehavior = new Quack();
008                flyBehavior = new FlyWithWings();
009
010
011        }
012
013        public void display() {
014                System.out.println("I'm a real Mallard duck");
015        }
016}