AP Computer Science Amediummcq1 pt
A superclass reference to a subclass object can call
A.methods declared in the superclass, dispatched to the subclass
B.every subclass method
C.only private superclass methods
D.only static methods
Visibility is set by the reference type, dispatch by the object.
Amethods declared in the superclass, dispatched to the subclass
Practice more AP Computer Science A questions with full explanations
Practice Unit 9: Inheritance Questions →