I'm trying to create an array of handles for a class, by randomize function I'll get the "no of transcations", this determines the no of handles to be created.class_name obj_name[transactions]; is this right?

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];
  ...