Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created August 12, 2019 17:16
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/b8f4f8bc08cf497fac78167e23af927e to your computer and use it in GitHub Desktop.
Save parzibyte/b8f4f8bc08cf497fac78167e23af927e to your computer and use it in GitHub Desktop.
fun main(argumentos: Array<String>) {
val mascota = Mascota("Maggie")
mascota.dormir()
mascota.saludar()
val otraMascota = Mascota("Guayaba", 2)
otraMascota.saludar()
/*
* Salida:
ZZZZ Maggie duerme
¡Hola! me llamo Maggie y tengo 0 años. Woof
¡Hola! me llamo Guayaba y tengo 2 años. Woof
*/
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment