public ModelDuck() { flyBehavior = new FlyNoWay(); quackBehavior = new Quack(); }
public MallardDuck() { display(); quackBehavior = new Quack(); flyBehavior = new FlyWithWings(); }
public ModelDuck() { flyBehavior = new FlyNoWay(); quackBehavior = new Quack(); }
public MallardDuck() { display(); quackBehavior = new Quack(); flyBehavior = new FlyWithWings(); }