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 that fields and methods can be inherited by subclasses
D) All of these are correct.
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q2: An interface can contain one or more
Q3: Assuming that class B inherits from class
Q4: Abstract methods can be static.
Q5: When is it determined which method is
Q6: An abstract method:<br>A) has a "do-nothing" body.<br>B)
Q7: Typically, an abstract class is a class
Q8: What keyword do we use in the
Q9: To use polymorphism, the classes must be
Q10: Inheritance is useful for which of the
Q11: Overriding a method and overloading a method