Example #1
0
 private void button2_Click(object sender, EventArgs e)
 {
     animal ani1;
     ani1 = new cat();
     ani1.color = "白";
     MessageBox.Show(ani1.sing());
 }
Example #2
0
 private void button3_Click(object sender, EventArgs e)
 {
     cat c1;
     c1 = new cat();
     MessageBox.Show(c1.sing());
 }