AP Computer Science Aeasymcq1 pt

A subclass object can be stored in a superclass variable because

A.a subclass object is a kind of superclass object
B.all classes are identical
C.Java copies the object
D.the compiler converts the class

Explanation

Core Concept

The is-a relationship allows it.

Correct Answer

Aa subclass object is a kind of superclass object

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 →