public override void SendMessage(Colleague from, string message)
 {
     if (from is ConcreteColleague1)
     {
         collegue2.Receive(message);
     }
     if (from is ConcreteColleague2)
     {
         collegue1.Receive(message);
     }
 }
Пример #2
0
 public abstract void SendMessage(Colleague from, string message);
 public abstract void SendMessage(Colleague from, string message);