SHARE
TWEET

Untitled

a guest Apr 26th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. struct Pet {
  2.   let name: String
  3.   let age: Int
  4.   let details: String
  5. }
  6.  
  7. let foo = Pet(name: "Fluffy", age: 10, details: "A dog.")
  8. print("Name:", foo.name)
  9. print("Age:", foo.age)
  10. print("Details:", foo.details)
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