Problem: Finally, note that vectors of objects can exist. This does not mean, however, that the new objects are instantiated when the array is declared. Arrays take up a fixed size in memory, and the size of an object isn't defined when it is instantiated. Therefore, the objects ... code could be used? object_list = new Object[5]; object_list[0] = new Object(); object_list[1] = new Object(); . .
asked
Dec 5, 2020
Mashhoodch
9.9k points