Created
August 11, 2019 02:37
-
-
Save parzibyte/218f1c87af82e649b86c9319412b39c4 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
/** | |
* Clase en Kotlin | |
* | |
* @author parzibyte | |
* @link https://parzibyte.me/blog | |
* | |
* */ | |
class Mascota(var nombre: String) { | |
init { | |
println("Init del objeto") | |
nombre = "" | |
} | |
fun dormir() { | |
println("ZZZZ $nombre duerme") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment