posted 23 years ago
Hi,
Your first example tries to create an object, but your second one just declares an empty array. Your second statement:
IAbout[] b = new IAbout[4];
just tells the compiler that you want the b array to have four elements which will reference an IAbout object. By default arrays get initialized when declared, therefore the array b will have 4 null values after the above statement. To use the array you need to fill in good values into it:
Regards,
Manfred.