private void RubberRB_CheckedChanged(object sender, EventArgs e) { _duck = new RubberDuck(); _duck.setFlyBehavior(new FlyNoWay()); _duck.setQuackBehavior(new Squeak()); }
private void DecoyRB_CheckedChanged(object sender, EventArgs e) { _duck = new DecoyDuck(); _duck.setFlyBehavior(new FlyNoWay()); _duck.setQuackBehavior(new MuteQuack()); }
private void ReadheadRB_CheckedChanged(object sender, EventArgs e) { _duck = new RedheadDuck(); _duck.setFlyBehavior(new FlyWithWings()); _duck.setQuackBehavior(new Quack()); }