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
Getters mediate access to private fields.
Aonly through public accessor methods
Practice more AP Computer Science A questions with full explanations
Practice Unit 9: Inheritance Questions →