Created
September 18, 2019 06:39
-
-
Save MithraTalluri/12adadf262a0f2802fe610036585be9b to your computer and use it in GitHub Desktop.
This file contains hidden or 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 john1 = Person("John") | |
val john2 = Person("John") | |
john1 == john2 // true (structural equality) | |
john1 === john2 // false (referential equality) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment