Question OOP-ENC-0068
HardWhich access level in Java is the most restrictive that still allows subclasses in other packages to use a member?
- A.
public
- B.
protected
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Encapsulation question
Which access level in Java is the most restrictive that still allows subclasses in other packages to use a member?
public
protected
Sign up free to see the answer and a step-by-step explanation.
default
private