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