+ 1
How to use array with object
3 odpowiedzi
+ 2
to create an array of objects of a given class you can do
classname[] objectlist = new classname[size]
just like you would with any other data type such as ints or strings. keep in mind that every class you create is just a new type of data inside of the system, and you can replace most occurrences of a data type with your own data types and even define an object of a class you are creating within itself... then the object you create contains objects as well which contains more objects.
+ 2
Nimuel Caballes anytime :)
+ 1
thank you very much sir!