In Java, you have to use the following notation for declaring instances of user-defined classes (I know this is blatently obvious if you know Java, but I'm just setting my self up for my point. It seems like I don't have one, I know, but I do):
class_type object_name = new class_type(constructor_parameter)
The book I'm using tells me that to declare arrays of user defined classes, you use the following notation:
class_type[] array_name = new class_type[array_size];
My question is this: where do the constructor parameters go? And how do you declare arrays of the primitive data types (i.e. int, etc.)? <- OK, THERE'S my point!
Thanks in advance if you can help.
_______________________
Sean Mackrory
[email protected]