+ 1

Explain me arrays plzzz..

8th Jun 2017, 6:17 AM
Anurag Tomar
2 Answers
+ 14
Lists of Items with same data-type and immutable length
8th Jun 2017, 6:37 AM
Valen.H. ~
Valen.H. ~ - avatar
+ 4
Here's an example if you're still stuck. Let's say you want to create a game with 20 enemies. Sure you can create 20 enemies individually (something like enemy1, enemy2, enemy3... all the way up to enemy20), or you can just create an enemy array (like enemy[20]). It saves a lot of time and memory when you want to create items with the same type. Hope it helps ^_^
8th Jun 2017, 7:16 AM
Aoife
Aoife - avatar