-
-
Save parzibyte/3f5a7dd97fd750a7e76500058b67d276 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
public class Mascota { | |
private String nombre; | |
private int edad; | |
private String[] amigos; | |
private Raza raza; | |
public Mascota(String nombre, int edad, String[] amigos, Raza raza) { | |
this.nombre = nombre; | |
this.edad = edad; | |
this.amigos = amigos; | |
this.raza = raza; | |
} | |
public Raza getRaza() { | |
return raza; | |
} | |
public void setRaza(Raza raza) { | |
this.raza = raza; | |
} | |
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 String[] getAmigos() { | |
return amigos; | |
} | |
public void setAmigos(String[] amigos) { | |
this.amigos = amigos; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment