AP Computer Science Amediummcq1 pt
When a subclass overrides toString(), it
A.replaces Object's toString for its objects
B.changes toString for all objects
C.removes toString
D.breaks Object
The subclass version is used.
Areplaces Object's toString for its objects
Practice more AP Computer Science A questions with full explanations
Practice Unit 9: Inheritance Questions →