Solved

An Array Can Be Created to Reserve Space for References

Question 74

Essay

  An array can be created to reserve space for references to objects. Using the code above, explain how an array of superclass references can hold subclass references. An array can be created to reserve space for references to objects. Using the code above, explain how an array of superclass references can hold subclass references.

Correct Answer:

verifed

Verified

The Animal[] animalRef = new Animal[3]; ...

View Answer

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