private void button3_Click(object sender, EventArgs e) { Eleph holder; holder = lloyd; lloyd = lucinda; lucinda = holder; MessageBox.Show("Objects switched", "SwitchBox"); }
public Form1() { InitializeComponent(); lucinda = new Eleph() { Name = "Lucinda", EarSize = 33 }; lloyd = new Eleph() { Name = "Lloyd", EarSize = 40 }; }