Multiple Choice
private fields of a superclass can be accessed in a subclass
A) by calling private methods declared in the superclass.
B) by calling public or protected methods declared in the superclass.
C) directly.
D) All of the above.
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q2: When overriding a superclass method and calling
Q6: Class _ represents an image that can
Q7: Using the protected keyword also gives a
Q7: An advantage of inheritance is that:<br>A)All methods
Q10: Which statement is true when a superclass
Q13: The default equals implementation of class Object
Q14: Which method changes the text the label
Q14: Which of the following is not a
Q15: Which of the following statements is false?<br>A)
Q18: Superclass methods with this level of access