What the best way to initialize a constructor in an array of objects?
Usually I declare an array of objects like so:
Is this the only way I know to initialize a constructor of an array:Code:Car toyota[100];
Is this the proper way? Any answer to my question are welcomed.Code:for (int i = 0; i < 100; i++) { toyota[i] = Car(x, y); }
Thank You
Benjamin Betancourt