I kindly want your help here.
As a newbie in OOP, I am trying to understand how the language reacts.
What I want to do is initialize an object array of another class.
What I am trying to say is :
Class xx
Expand|Select|Wrap|Line Numbers
- foo[] foox = new foo[9]
- foox[0] = new foo("value here","value here");
- //Class foo has the variables . IE string name; - string something;
Expand|Select|Wrap|Line Numbers
- foo[] foox;
- public xx()
- {
- foox = new foo[9];
- foox[0] = new foo("value","value");
- foox[1] = new foo(etc etc);
- //etc
- }