How to initialize an array of objects by calling the parameterized constructor of the class
Example:
class a
{
    int val;
    //def
    public a()
    {
    }
    //with param
    public a(int value)
    {
        val = value;
    }
}
How to initialize a dynamic array of the above class by using its constructor
eg:
a[] dyArray = new a[size];  // how to call constructor to initialize a value 
                            // other than looping each element and initialize 
                            // it? say, with value 10;
Is there any other standard way to do this?
 
     
     
     
     
     
    