Created
January 11, 2020 10:48
-
-
Save shivam340/30f99efa1a08205f4be04aa87687b1f5 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
val user1 = User(name = "jack") | |
user1.age = 10 | |
val user2 = User(name = "jack") | |
user2.age = 20 | |
println(user1.equals(user2)) // this will return true. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment