-
-
Save parzibyte/d1aa51c88f1e6ded1bef5ea0219bc509 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Persona { | |
private String nombre, web; | |
private int edad; | |
public Persona(String nombre, String web, int edad) { | |
this.nombre = nombre; | |
this.web = web; | |
this.edad = edad; | |
} | |
public String getNombre() { | |
return nombre; | |
} | |
public void setNombre(String nombre) { | |
this.nombre = nombre; | |
} | |
public String getWeb() { | |
return web; | |
} | |
public void setWeb(String web) { | |
this.web = web; | |
} | |
public int getEdad() { | |
return edad; | |
} | |
public void setEdad(int edad) { | |
this.edad = edad; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment