You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
357 B
18 lines
357 B
package patronMediator;
|
|
|
|
public class ColegaConcreto1 extends Colega{
|
|
|
|
public ColegaConcreto1(Mediador mediador) {
|
|
super(mediador);
|
|
}
|
|
|
|
public void enviarMensaje(String mensaje) {
|
|
mediador.enviarMensaje(mensaje, this);
|
|
}
|
|
|
|
@Override
|
|
public void mensajeRecibido(String mensaje) {
|
|
System.out.println("Colega 1 recibe el mensaje: " + mensaje);
|
|
}
|
|
|
|
}
|
|
|