<Which visibility modifier has lesser visibility: ...
# stackoverflow
u
Which visibility modifier has lesser visibility: Protected or Internal? Which visibility modifier is more permissive: Protected or Internal? internal var num = 18 protected set // throws an error at 'protected' showing: Setter visibility must be the same or less permissive than property visibility And I try this also: protected var num = 18 internal set // throws an error at 'internal' showing: Setter visibility must be the same or less permissive than property visibility