Solved

Which Statement Best Describes the Relationship Between Superclass and Subclass

Question 16

Multiple Choice

Which statement best describes the relationship between superclass and subclass types?


A) A subclass reference cannot be assigned to a superclass variable and a superclass reference cannot be assigned to a subclass variable.
B) A subclass reference can be assigned to a superclass variable and a superclass reference can be assigned to a subclass variable.
C) A superclass reference can be assigned to a subclass variable, but a subclass reference cannot be assigned to a superclass variable.
D) A subclass reference can be assigned to a superclass variable, but a superclass reference cannot be assigned to a subclass variable.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents