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.
21 lines
337 B
21 lines
337 B
package patronMemento;
|
|
|
|
public class Originador {
|
|
private String estado;
|
|
|
|
public void setEstado(String estado) {
|
|
this.estado = estado;
|
|
}
|
|
|
|
public Memento crearMemento() {
|
|
return new Memento(estado);
|
|
}
|
|
|
|
public void setMemento(Memento m) {
|
|
this.estado = m.getEstado();
|
|
}
|
|
|
|
public String getEstado() {
|
|
return estado;
|
|
}
|
|
}
|
|
|