Diseño de aplicaciones orientadas a objetos
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.
|
package patronObserver;
|
|
|
|
//esta clase es el OBSERVADOR
|
|
public class Cliente implements ObservadorIF{
|
|
|
|
String nombre;
|
|
|
|
public Cliente(String nombre){
|
|
this.nombre=nombre;
|
|
}
|
|
|
|
@Override
|
|
public void update() {
|
|
System.out.println(nombre + " recibe notificacion reparación");
|
|
}
|
|
|
|
}
|
|
|