Connect the restrictions and appropriate access modifier names
Computer scienceProgramming languagesJavaCode organizationObject-oriented programmingClasses and objectsAccess control
Protected modifier
Restrictions
Report a typo
Match the items from left and right columns
protected
default
public
private
only the class itself
package classes and descendants
only classes from the same package
any class, anywhere
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.