Пример #1
0
 public RubberDuck()
 {
     flyBehaviour = new CantFly();
     quackBehaviour = new Quack();
 }
Пример #2
0
 public MallardDuck()
 {
     flyBehaviour = new FlyWithWings();
     quackBehaviour = new Quack();
 }