How do you protect a class field from being accessible by classes outside the package? (Classes from the same package must have access.)
Computer scienceProgramming languagesJavaCode organizationObject-oriented programmingClasses and objectsAccess control
Access modifiers
Accessibility outside the package
Report a typo
Select one option from the list
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.