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
Q1: Consider the classes below, declared in the
Q2: Which of the following statements is false?<br>A)
Q3: Every class in Java, except _, extends
Q4: When overriding a superclass method and calling
Q6: An advantage of inheritance is that:<br>A) All
Q7: Using the protected keyword also gives a
Q8: Which superclass members are inherited by all
Q9: Inheritance is also known as the<br>A) knows-a
Q10: Which statement is true when a superclass
Q11: The default implementation of method clone of