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()); }
private void button1_Click(object sender, EventArgs e) { MessageBox.Show(dog.ListDetails()); MessageBox.Show(cat.ListDetails()); }