Imagine that you have already defined an object type EMPLOYEE which contains a member of type
STRING. You then create an array of
EMPLOYEE objects and set the
Name member of each of each object.
Each time round the do-loop, the
do-variable becomes an object of the appropriate type, even if the array is a heterogeneous mixture of objects.