Example #1
0
        public Form1()
        {
            InitializeComponent();
            Elephant lloyd = new Elephant()
            {
                Name = "Lloyd", EarSize = 40
            };
            Elephant lucinda = new Elephant()
            {
                Name = "Lucinda", EarSize = 33
            };

            lucinda.TellMe("Hi", lucinda);
            lucinda.speakTo(lloyd, "Hello");
        }
Example #2
0
 public void speakTo(Elephant talkTo, string message)
 {
     talkTo.TellMe(message, this);
 }