AP Computer Science Amediummcq1 pt
When is an overriding method called through a superclass reference?
A.when the object is actually a subclass
B.never
C.only for static methods
D.only at compile time
Dynamic dispatch checks the runtime class.
Awhen the object is actually a subclass
Practice more AP Computer Science A questions with full explanations
Practice Unit 9: Inheritance Questions →