Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Arrays of Objects
Index -> Programming, Java -> Java Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Justin_




PostPosted: 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?
Sponsor
Sponsor
Sponsor
sponsor
wtd




PostPosted: Sat Apr 01, 2006 4:17 pm   Post subject: (No 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.
Display posts from previous:   
   Index -> Programming, Java -> Java Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: