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
The is-a relationship allows it.
Aa subclass object is a kind of superclass object
Practice more AP Computer Science A questions with full explanations
Practice Unit 9: Inheritance Questions →