Object Array
An array with objects of user defined class type is called Object Array.
Example
In the following example, we initialize an Array with objects fruit1
, fruit2
, and fruit3
of user defined class type Fruit
, and access its elements using index.
index.html