Пример #1
0
 public ModelDuck()
 {
     flyBehavior   = new FlyNoWay();
     quackBehavior = new Quack();
 }
 public MallardDuck()
 {
     flyBehavior   = new FlyWithWings();
     quackBehavior = new Quack();
 }