예제 #1
0
 public override void Send(string message,
                           Colleague colleague)
 {
     if (colleague == colleague1)
     {
         colleague1.Notify(message);
     }
     else if (colleague == colleague2)
     {
         colleague2.Notify(message);
     }
     else
     {
         colleague3.Notify(message);
     }
 }
예제 #2
0
 public abstract void Send(string message,
                           Colleague colleague);