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.
23 lines
349 B
23 lines
349 B
3 years ago
|
package patronPrototype;
|
||
|
|
||
|
public class Figura implements Prototype{
|
||
|
private String nombre;
|
||
|
|
||
|
public Figura(String nombre) {
|
||
|
this.nombre=nombre;
|
||
|
}
|
||
|
|
||
|
public String getNombre() {
|
||
|
return nombre;
|
||
|
}
|
||
|
|
||
|
public void setNombre(String nombre) {
|
||
|
this.nombre = nombre;
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public Figura clone() {
|
||
|
return new Figura(this.nombre);
|
||
|
}
|
||
|
}
|