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.
22 lines
349 B
22 lines
349 B
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);
|
|
}
|
|
}
|
|
|