Пример #1
0
 public MallardDuck()
 {
     iQuackBehavior = new QuackClass();
     iFlyBehavior   = new FlyWithWings();
 }
Пример #2
0
 public ReadheadDuck()
 {
     iQuackBehavior = new QuackClass();
     iFlyBehavior   = new FlyWithWings();
 }
Пример #3
0
 public ModelDuck()
 {
     iFlyBehavior   = new FlyNoWay();
     iQuackBehavior = new QuackClass();
 }