an array of objects

I have created a class where the constructor accepts 3 arguments for the DIN, CLK & CS pins. I am creating more than one instance of this class.

module myModule1(4,5,6);
module myModule2(7,8,9);

myModule1.displayCharacter(22);
myModule2.displayCharacter(28);

I would like to create an array of these objects.

module myModules[2];
myModules[0].displayCharacter(22);
myModules[1].displayCharacter(28);

But I don't know how I would pass the arguments needed by the constructor.

But I don't know how I would pass the arguments needed by the constructor.

One way:

module myModules[] = { myModule1(4,5,6), myModule1(7,8,9) };

The other (better) would be to create a no-argument constructor and add a method to assign the needed pin numbers.