N handles

How to create N handles and copy those handles into an array?

In reply to Simi:

class A;
endclass

A array[10];

foreach(array[N]) array[N] = new;