Beispiel #1
0
 private void button3_Click(object sender, EventArgs e)
 {
     Elephant TempRef;
     TempRef = Lloyd;
     Lloyd = Lucinda;
     Lucinda = TempRef;
     MessageBox.Show("Objects swapped");
 }
Beispiel #2
0
 private void button4_Click(object sender, EventArgs e)
 {
     Lloyd         = Lucinda;
     Lloyd.EarSize = 4321;
     Lloyd.WhoAmI();
 }
Beispiel #3
0
 private void button4_Click(object sender, EventArgs e)
 {
     Lloyd = Lucinda;
     Lloyd.EarSize = 4321;
     Lloyd.WhoAmI();
 }
Beispiel #4
0
 public Form1()
 {
     InitializeComponent();
     Lloyd = new Elephant() { Name = "Lloyd", EarSize = 33};
     Lucinda = new Elephant() { Name = "Lucinda", EarSize = 40};
 }