Sign up for FlowVella
Sign up with FacebookAlready have an account? Sign in now
By registering you are agreeing to our
Terms of Service
Loading Flow
Objects: Access Control
Internal
Internal data is only accessible to the module in which they’re defined. A module is an application, library, or framework.
Private
Private data is only accessible to the file in which it’s declared.
Public
Public classes, methods, and properties are accessible by any part of the app.
Manning, Jon, Paris Buttfield-Addison, and Tim Nugent. Swift Development with Cocoa. O'Reilly Media, 2014
Internal is the default level of access control: if you don’t specify the access control level, it’s assumed to be internal (with exception of private classes, whose members are defaulted to private)