Comment on Access Control in SwiftparentComments−jackjeff12y"internal" offers access to all in the module, not just subclasses."protected" would allow you to modify a member of a class when you inherit from it, whether it is in the same module or not.using "internal" or "public" with a comment saying "please only use this when you subclass" the class is not as neat and tidy.
Comments
"internal" offers access to all in the module, not just subclasses.
"protected" would allow you to modify a member of a class when you inherit from it, whether it is in the same module or not.
using "internal" or "public" with a comment saying "please only use this when you subclass" the class is not as neat and tidy.