Last active
January 11, 2020 10:39
-
-
Save shivam340/8f5e92717d7762ba43dcd8fc819ed62f 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(val name:String, val age:Int) | |
val user = User(name="jack", age = 10) | |
val newUser = user.copy(age = 20) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment