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
Q3: Consider the classes below,declared in the same
Q4: When overriding a superclass method and calling
Q4: Superclass methods with this level of access
Q6: To avoid duplicating code,use _,rather than _.
A)inheritance,the
Q7: Which superclass members are inherited by all
Q8: Every class in Java, except _, extends
Q13: Overriding a method differs from overloading a
Q13: The default implementation of method clone of
Q16: Which of the following statements is false?
A)
Q20: An advantage of inheritance is that:
A)All methods
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents