🎴 Flashcard Mode

Java Declarations and Access Control Quiz

Card1 / 8
Mastered0
Review0
QuestionClick to flip

You want subclasses in any package to have access to members of a superclass. Which is the most restrictive access that accomplishes this objective?

AnswerClick to flip back
A
protected
💡 Explanation:

protected makes a member accessible only to classes in the same package or subclass of the class

Change Mode