πŸ“Š JAVA
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
πŸ’¬ Discuss
βœ… Correct Answer: (B) To allow access to members within the same package and subclasses in any package

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
97
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Praveen Singh
Publisher
πŸ“ˆ
80%
Success Rate