Solved

An Array Can Be Created to Reserve Space for References

Question 66

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