public override void Send(string message, Colleague colleague) { if (colleague == Colleague1) { Colleague2 .Notify(message); } else { Colleague1.Notify(message); } }
public override void Send(string message, Colleague colleague) { if (colleague == _colleague1) { _colleague2.Notify(message); } else { _colleague1.Notify(message); } }
public abstract void Send(string message, Colleague colleague);