Created
July 21, 2022 13:46
-
-
Save MasoudFallahpour/b2d0b98eaab71d4c0679bfee232155cb 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() { | |
val user = User().apply { | |
firstName = "John" | |
lastName = "Doe" | |
} | |
val firstName = user.firstName | |
val lastName = user.lastName | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment