Esempio n. 1
0
 public MallardDuck()
 {
     quackBehavior = new Quack();
     flyBehavior   = new FlyWithWings();
 }
 public ModelDuck()
 {
     flyBehavior   = new FlyNoWay();
     quackBehavior = new Quack();
 }