Beispiel #1
0
 public abstract void SendMessage(Colleague sender,string message);
Beispiel #2
0
 public override void SendMessage(Colleague sender, string message)
 {
     if (sender == _colleague1)
     {
         _colleague2.Notify(message);
     }
     else if (sender == _colleague2)
     {
         _colleague1.Notify(message);
     }
 }