+ 1

How to use array with object

15th Aug 2018, 12:40 PM
Nimuel Caballes
Nimuel Caballes - avatar
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.
15th Aug 2018, 1:22 PM
Robert Atkins
Robert Atkins - avatar
+ 2
Nimuel Caballes anytime :)
16th Aug 2018, 8:47 AM
Robert Atkins
Robert Atkins - avatar
+ 1
thank you very much sir!
15th Aug 2018, 10:45 PM
Nimuel Caballes
Nimuel Caballes - avatar