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