스위프트 Class

01. Module

02. Source File

03. 접근 제어

04. Open과 Public의 차이점

public class SomePublicClass {
     public var somePublicProperty = 0
     var someInternalProperty = 0
     fileprivate func someFilePrivateMethod() {}
     private func somePrivateMethod() {}
}

// Internal 지정자가 Default
class SomeInternalClass {
     var someInternalProperty = 0
     fileprivate func someFilePrivateMethod() {}
     private func somePrivateMethod() {}
}

fileprivate class SomeFilePrivateClass {
     func someFilePrivateMethod() {}
     private func somePrivateMethod() {}
}

private class SomePrivateClass {
     func somePrivateMethod() {}
}