fichero_03-update

This commit is contained in:
Avelino
2026-09-29 13:02:24 +02:00
parent 091c219f61
commit f41714fc36
3 changed files with 5 additions and 5 deletions
@@ -0,0 +1,62 @@
package org.palomafp.dam2.aadd.anp.model;
public class Pais {
private int id;
private String nombre;
private String capital;
private Continente continente;
public Pais() {
}
public Pais(int id, String nombre, String capital, Continente continente) {
this.id = id;
this.nombre = nombre;
this.capital = capital;
this.continente = continente;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getNombre() {
return nombre;
}
public void setNombre(String nombre) {
this.nombre = nombre;
}
public String getCapital() {
return capital;
}
public void setCapital(String capital) {
this.capital = capital;
}
public Continente getContinente() {
return continente;
}
public void setContinente(Continente continente) {
this.continente = continente;
}
@Override
public String toString() {
return "Pais{" +
"id=" + id +
", nombre = '" + nombre + '\'' +
", capital = '" + capital + '\'' + "," +
continente +
'}';
}
}