SHARE
TWEET

Untitled

a guest Oct 21st, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. struct Person {
  2.     var name: String
  3. }
  4.  
  5. var person1 = Person(name: "ram")
  6. var person2 = person1
  7. person2.name = "rahim"
  8. print(person1.name)
  9. print(person2.name)
  10.  
  11. //Output
  12. ram
  13. rahim
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top