Created
December 16, 2017 12:04
-
-
Save aditrioka/bf756b09bd3f82b3575db0c156adbedd 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
data class Person(val name: String, val gender: Gender, | |
var age: Int = 0, var email: String = "") { | |
fun doWork() { | |
println("*working*") | |
} | |
fun doEat() { | |
println("*eating*") | |
} | |
fun doSleep() { | |
println("*sleeping") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment