Exemple #1
0
 public void SpeakTo(Elephant whoToTalkTo, string message)
 {
     whoToTalkTo.TellMe(message, this);
 }
Exemple #2
0
 private void button3_Click(object sender, EventArgs e)
 {
     buf     = lucinda;
     lucinda = lloyd;
     lloyd   = buf;
 }
Exemple #3
0
 public void TellMe(string message, Elephant whoSaidIt)
 {
     MessageBox.Show(whoSaidIt.Name + " says: " + message);
 }