AP Computer Science Amediummcq1 pt

A subclass method may access a superclass private field

A.only through public accessor methods
B.directly by name
C.never, under any circumstances
D.only if the field is final

Explanation

Core Concept

Getters mediate access to private fields.

Correct Answer

Aonly through public accessor methods

More Unit 9: Inheritance practice questions

Try a random question →

Practice more AP Computer Science A questions with full explanations

Practice Unit 9: Inheritance Questions →