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