package Package;
|
|
import java.io.Serializable;
|
|
|
|
public class Persona implements Serializable{
|
|
|
|
private int id;
|
|
private String nombre;
|
|
private int edad;
|
|
|
|
public Persona(int id, String nombre, int edad) {
|
|
this.id = id;
|
|
this.nombre = nombre;
|
|
this.edad= edad;
|
|
}
|
|
|
|
public Persona() {
|
|
this.nombre=null;
|
|
}
|
|
|
|
public int getId() {
|
|
return id;
|
|
}
|
|
|
|
public String getNombre() {
|
|
return nombre;
|
|
}
|
|
|
|
public void setNombre(String nombre) {
|
|
this.nombre = nombre;
|
|
}
|
|
|
|
public int getEdad() {
|
|
return edad;
|
|
}
|
|
|
|
public void setEdad(int edad) {
|
|
this.edad = edad;
|
|
}
|
|
|
|
}
|