public override void Enviar(string mensagem, Colega colega) { if (colega == colegaConcreto1) { colegaConcreto2.Notificar(mensagem); } else { colegaConcreto1.Notificar(mensagem); } }
public override void Enviar(string mensagem, Colega colega) { if (colega == Colega1) { Colega2.Notificar(mensagem); } else { Colega1.Notificar(mensagem); } }
public abstract void Enviar(string mensagem, Colega colega);