Created
May 27, 2019 07:11
-
-
Save AppleCEO/e2db85ca96408a9fa4050cc9ac3985c5 to your computer and use it in GitHub Desktop.
사용자 지정 이니셜라이저 예제
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 brand: String | |
init(channel: Int) { | |
self.channel = channel | |
self.brand = "LG" | |
} | |
} | |
var tv = TV(channel: 15) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment