In reply to Ammu4392:
I believe you want something like…
classA obj[]; // dynamic array
...
virtual task body();
a.randomize();
num_txns = a.transactions;
obj=new[num_txns];
...
In reply to Ammu4392:
I believe you want something like…
classA obj[]; // dynamic array
...
virtual task body();
a.randomize();
num_txns = a.transactions;
obj=new[num_txns];
...