Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created May 21, 2021 17:22
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/8fb28af51b088aeca5f67dcd7ba6a815 to your computer and use it in GitHub Desktop.
Save parzibyte/8fb28af51b088aeca5f67dcd7ba6a815 to your computer and use it in GitHub Desktop.
class NombreConEdad {
String nombre;
int edad;
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;
}
public NombreConEdad(String nombre, int edad) {
this.nombre = nombre;
this.edad = edad;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment