Created
September 26, 2019 15:28
-
-
Save parzibyte/9ebe6d747f2131cd7be598116c3b6a40 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
package me.parzibyte.demostracionrecyclerview; | |
public class Mascota { | |
private String nombre; | |
private int edad; | |
public Mascota(String nombre, int edad) { | |
this.nombre = nombre; | |
this.edad = edad; | |
} | |
public String getNombre() { | |
return nombre; | |
} | |
public int getEdad() { | |
return edad; | |
} | |
@Override | |
public String toString() { | |
return "Mascota{" + | |
"nombre='" + nombre + '\'' + | |
", edad=" + edad + | |
'}'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment