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

Explanation

Core Concept

The subclass version is used.

Correct Answer

Areplaces Object's toString for its objects

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 →