Created
November 18, 2019 07:11
-
-
Save kyawhtut-cu/58f59e795c2be888112776a9b187644f 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 User @JvmOverloads constructor( | |
var name: String, | |
var age: Int, | |
var address: String = "", | |
var gender: String | |
) { | |
companion object { | |
val TAG = User::class.java.name | |
fun createUser(name: String, age: Int, address: String = "", gender: String): User { | |
return User(name, age, address, gender) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment