Exemplo n.º 1
0
 protected void btn_Squeak_Click(object sender, EventArgs e)
 {
     Duck quackDuck = new SuperDuck();
     quackDuck.QuackBehavior = new Squeak();
     lbl_QuackResult.Text = quackDuck.PerformQuack();
     quackDuck.DoQuack();
 }