Last active
January 11, 2018 07:05
-
-
Save agoiabel/ddef231f3c98aa520b7872943770de29 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
struct Dog { | |
let name: String | |
var breed: String | |
var age: Int | |
} | |
//accessing the struct | |
var myDog = Dog(name: "Molly", breed: "Lhasa Apso", age: 1) | |
myDog.name //will return Molly |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment