Created
January 17, 2022 13:14
-
-
Save artturijalli/104dc69818698d17ca376a44d6d57728 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 Fruit { | |
let name: String | |
let color: String | |
init(name: String, color: String) { | |
self.name = name | |
self.color = color | |
} | |
} | |
var banana = Fruit(name: "Banana", color: "Yellow") | |
print(banana.name, banana.color) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment