Created
August 27, 2019 15:02
-
-
Save nanotroy/a7796123ef77bf2f821f7ccb86fa93b7 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
let articleClass = ArticleClass(title: "Struct vs Class", url: URL(string: "www.avanderlee.com")!) | |
let articleClassCopy = articleClass | |
articleClass.readCount = 10 | |
print(articleClassCopy.readCount) // Prints: 10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment