Multiple choice technology programming languages

A subclass can access the private member variables of its own superclass

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Private member variables in a superclass are not accessible to subclasses - this is a fundamental principle of encapsulation in object-oriented programming. Only the superclass itself can access its private members. Subclasses can only access public, protected, and package-private (if in same package) members.