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
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