Created
May 27, 2019 07:01
-
-
Save AppleCEO/5ff0e300d512f868bf0d2f41d0091664 to your computer and use it in GitHub Desktop.
Memberwise Initializers Example
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
struct TV { | |
var channel: Int = 1 | |
} | |
var tv = TV(channel: 15) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment