Last active
October 7, 2018 15:48
-
-
Save vialyx/8f3d30963d244273f0412ef22dbc5289 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
class User { | |
var name: String? | |
var source: String? | |
} | |
let guest = User() | |
guest.source = "Facebook" | |
let newUser = guest | |
newUser.name = "Medusa" | |
print("guest name: \(guest.name)") | |
print("newUser name: \(newUser.name)") | |
print("\(newUser.name == guest.name)") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment