Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created May 21, 2021 17:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/4e036c10226b08f73337d76d1af744e1 to your computer and use it in GitHub Desktop.
Save parzibyte/4e036c10226b08f73337d76d1af744e1 to your computer and use it in GitHub Desktop.
class Persona {
String nombre;
String apellido;
int edad;
public String getNombre() {
return nombre;
}
public void setNombre(String nombre) {
this.nombre = nombre;
}
public String getApellido() {
return apellido;
}
public void setApellido(String apellido) {
this.apellido = apellido;
}
public int getEdad() {
return edad;
}
public void setEdad(int edad) {
this.edad = edad;
}
public Persona(String nombre, String apellido, int edad) {
this.nombre = nombre;
this.apellido = apellido;
this.edad = edad;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment