structResolution{
var width = 0var height = 0init(width: Int){
self.width = width
}
}
let resolution = Resolution() (x) => 불가능
let resolution = Resolution(width:4096) (o)
디폴트 매개변수를 이용한 방법
structResolution{
var width = 0var height = 0init(width: Int = 0){
self.width = width
}
}
let resolution = Resolution() (o)
let resolution = Resolution(width:4096) (o)