-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
접근 제어자의 종류엔 어떤게 있는지 설명하시오. #24
Labels
Swift
Swift CS 개념 공부
Comments
접근 제어자접근 제어자는 코드를 작성하는 한 파일에서 다른 파일에 있는 코드에 대한 접근을 명시적으로 작성하여 이를 관리하는 것인데, module과 source file에 따라 접근할 수 있음
swift의 5가지 접근 제어자
그 외
참조 |
접근 제어(Access Control)란?
접근 제어의 종류 - 5가지
class SomeClass {
public init() {}
}
접근 제어 구문open class SomeOpenClass {}
public class SomePublicClass {}
public struct SomeStruct {}
public enum SomeEnum {}
internal class SomeInternalClass {}
fileprivate class SomeFilePrivateClass {}
private class SomePrivateClass {} 참고 |
접근 제어자의 종류접근 제어자는 모듈과 소스파일 내에서 클래스나 구조체 등의 프로퍼티와 메서드에 허용되는 접근 범위를 정의한다.
open
public
internal
fileprivate
private
📝 참고 사이트 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: