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