//De esta forma cada pato define su comportamiento public RubberDuck() { FlyBehavior = Behavior.CantFly(); SwimBehavior = Behavior.CanSwim(); QuackBehavior = Behavior.Squeak(); }
//De esta forma cada pato define su comportamiento public WoodDuck() { FlyBehavior = Behavior.CantFly(); SwimBehavior = Behavior.CantSwim(); QuackBehavior = Behavior.CantQuack(); }