Beginner
Object-Oriented Programming Concepts
Q17 / 100
What access modifier typically allows access from the declaring class and its subclasses, but not from unrelated classes?
Correct! Well done.
Incorrect.
The correct answer is A) Protected
A
Correct Answer
Protected
Explanation
Protected members are visible to the defining class and its subclasses, balancing encapsulation with reuse via inheritance.
Progress
17/100