Multiple Choice
Why does Java provide a protected access modifier?
A) To hide methods from the client classes
B) To hide fields from client classes
C) So fields and methods can be inherited by subclasses
D) All of these are correct.
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q36: An interface can contain one or more
Q37: The extends keyword specifies that the subclass
Q38: Several classes implement an interface, but all
Q39: Suppose you write a program in which
Q40: Inheritance helps organize related classes into _.
Q42: Private fields and methods are inherited.
Q43: An interface can contain instance variables.
Q44: Assuming that class B inherits from class
Q45: Which keyword do we use in the
Q46: Which of the following would make the