Q9
In Java, can a subclass access private members (fields and methods) of its superclass?
A.
Yes, as long as the subclass is in the same package
B.
Yes, regardless of the access modifier
C.
No, private members are not visible to subclasses
AnswerD.
Only if the superclass is marked as "final"
Answer: Option C
Solution
Answer: Option C
No explanation is given for this question Let's Discuss on Board