구조체 대부분의 타입이 구조체로 이루어져있음 struct 키워드 사용 struct Sample{ //인스턴스 프로퍼티 var mutableProperty: Int = 100 //가변 프로퍼티 let immutableProperty: Int = 10 //불변 프로퍼티 // 타입 프로퍼티: //Sample.typeProperty처럼 타입으로 호출가능 static var typeProperty: Int = 100 //인스턴스 메서드 func instanceMethod(){ print("instance method") } //타입 메서드 static func typeMethod(){ print("type method") } } 가변인스턴스 → 프로퍼티 값 변경 가능(불변프로퍼티는 불가능) 불변 인스턴스 → 프로..