Computer Science Canada Arrays of Objects |
Author: | Justin_ [ Sat Apr 01, 2006 2:56 pm ] |
Post subject: | Arrays of Objects |
How do you pass the arguments to the constructor when declaring an array of objects? |
Author: | wtd [ Sat Apr 01, 2006 4:17 pm ] |
Post subject: | |
When you declare an array of objects, the individual elements in the array are not initialized. You must separately loop over the array and initialize each object. |