public override void speak(object sender, AnimalAskForSpeakEventArgs e) { if (e.AnimalName == "dog") { textBlock.Text += "dog: I am a dog\n"; } }
public abstract void speak(object sender, AnimalAskForSpeakEventArgs e);