Exemple #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     MessageBox.Show(dog.ListDetails()); //use an object to call upon a method
     MessageBox.Show(cat.ListDetails());
     MessageBox.Show(frog.ListDetails());
 }
Exemple #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     MessageBox.Show(dog.ListDetails());
     MessageBox.Show(cat.ListDetails());
 }