| highest precedence <---------> lowest precedence *———————————————+————————————————+———————————+———————————————+——————— \ xCanBeSeenBy | this | any class | this subclass | any \__________ | class | in same | in another | class \ | nonsubbed | package | package | Modifier of x \ | | | | ————————————————*————————————————+———————————+———————————————+——————— public | ✔ | ✔ | ✔ | ✔ ————————————————+————————————————+———————————+———————————————+——————— protected | ✔ | ✔ | ✔ | ✘ ————————————————+————————————————+———————————+———————————————+——————— package-private | | | | (no modifier) | ✔ | ✔ | ✘ | ✘ ————————————————+————————————————+———————————+———————————————+——————— private | ✔ | ✘ | ✘ | ✘ 8 of 16
Rollback to Revision 6 - Edit approval overridden by post owner or moderator
Abdull
- 28.2k
- 27
- 137
- 185
Abdull
- 28.2k
- 27
- 137
- 185