Created
April 8, 2021 21:02
-
-
Save soudmaijer/5537b0b191e870213995980c99b79409 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 address1 = Address(postalCode = "1506TX", houseNumber = "4") | |
val address2 = address1.copy() | |
println("address1 == address2: ${address1 == address2}") | |
val address3 = address1.copy() | |
address3.street = "Hermitage 4" | |
println("address1 == address3: ${address1 == address3}") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment