public override void Send(string message,
   Colleague colleague)
 {
     if (colleague == _colleague1)
     {
         _colleague2.Notify(message);
     }
     else
     {
         _colleague1.Notify(message);
     }
 }
示例#2
0
 public abstract void Send(string message,
   Colleague colleague);