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