🎴 Flashcard Mode
Java Programming Quiz
Card1 / 20
Mastered0
Review0
QuestionClick to flip
Can a subclass access the private values of the super class
AnswerClick to flip back
A
No
💡 Explanation:
Private members of a superclass are NOT accessible in subclasses. This is a fundamental principle of encapsulation in Java - private access means class-level only. Even though subclasses inherit the parent, they cannot directly access private fields or methods. They must use public/protected getters or setters if available. Option A 'No' is correct.