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

Explanation

Core Concept

Visibility is set by the reference type, dispatch by the object.

Correct Answer

Amethods declared in the superclass, dispatched to the subclass

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 →