private void button2_Click(object sender, EventArgs e) { Eagle eagle = new Eagle(textBox1.Text); Helicopter h = new Helicopter(textBox2.Text); eagle.SayFlyCondition(); h.SayFlyCondition(); }