+ 1
How can I declare an object of a specific class in a new other class, and at the same time this object is an array??
Using IDEAL Intellig
2 Answers
+ 3
This is a simple example.
https://code.sololearn.com/ckIW7lBfJsqg/?ref=app
+ 1
Demo objArr[]=new Demo[10];
for(int i=0;i<objArr.length;i++) {
objArr[i]=new Demo();
}