Swift access modifiers
Depends on access modifier of class, function or property it can be subclassed, overrode, accessible
Access modifier can be applicable for class, field[About], method. Try to access, subclass or override this.
- Access to
fieldormethodis through aclass - Inheritance and Open Closed Principle[About]
- Extension, wrapper
- Successor
class(subclass) access modifier should be the same or restrict it(exceptprivate<->fileprivate). - Successor
method(override) access modifier should be the same or expand it