Solved

A Reference to a Subclass Object Can Be Assigned to a Superclass

Question 24

Multiple Choice

A reference to a subclass object can be assigned to a superclass variable


A) only if neither the subclass nor the superclass is generic
B) only if at most one of the subclass and superclass is generic
C) only if the subclass is not generic
D) with no restrictions on the genericity of the subclass or superclass

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