A

Admin • 828.43K Points
Coach

Q. What is the purpose of the "protected" access modifier in Java inheritance?

  • (A) To make a member visible to all classes in any package
  • (B) To allow access to members within the same package and subclasses in any package
  • (C) To hide a member from all subclasses
  • (D) None of These
  • Correct Answer - Option(B)
  • Views: 16
  • Filed under category Java
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.