public MallordDuck()
 {
     quackBehaviour = new RealQuack();
     flyBehaviour   = new FlyWithWings();
 }
예제 #2
0
 public ModelDuck()
 {
     flyBehaviour   = new FlyNoWay();
     quackBehaviour = new RealQuack();
 }