Created
August 12, 2019 17:16
-
-
Save parzibyte/b8f4f8bc08cf497fac78167e23af927e 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
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