+1 vote
in JAVA by (30.6k points)

Can a subclass access private members of its superclass in Java?

1 Answer

0 votes
by (30.6k points)

No, a subclass cannot access private members of its superclass in Java. Private members of a class are only accessible within the class and are not inherited by subclasses.

Related questions

+1 vote
...