001package headfirst.strategy;
002
003public class RubberDuck extends Duck {
004
005        public RubberDuck() {
006                flyBehavior = new FlyNoWay();
007                quackBehavior = new Squeak();
008        }
009
010        public void display() {
011                System.out.println("I'm a rubber duckie");
012        }
013}