Let's assume I got an object called A() and an array called Array(5).class How can I assign all elements of class a new object of A().
Array(1:5).class = A()
Wont work. I don't want to use for loop;
for i=1:5 Array(i).class = A() end
P.S: I want each element of array to assign a new A() object, not the same. A() is constructor of A also.
Best Answer