예제 #1
0
 public MallardDuck()
 {
     _flyBehavior   = new FlyWithWings();
     _quackBehavior = new QuackNormal();
 }
예제 #2
0
 public RedheadDuck()
 {
     _flyBehavior   = new FlyNoWay();
     _quackBehavior = new QuackNormal();
 }