Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created August 22, 2019 23:29
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/a5340cefb0104f4b8ae23266e75d9a6c to your computer and use it in GitHub Desktop.
Save parzibyte/a5340cefb0104f4b8ae23266e75d9a6c to your computer and use it in GitHub Desktop.
package HolaMundoSpringBoot;
public class Mascota{
private final String nombre;
private final int edad;
public Mascota(String nombre, int edad){
this.nombre = nombre;
this.edad = edad;
}
public String getNombre(){
return this.nombre;
}
public int getEdad(){
return this.edad;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment