Hi,
I would need help understanding why when creating the “State” array we called the array “State” (same name of the class this is in) and why we couldn’t name it something like “myStateArray” (something of our own name within the class “State”).
It seems the class name had to be used for the array name in this instance, but I don’t understand why? What am I missing…
- why the array had to be called the same as the class name?
- why we can’t use a made-up name (like in the initial example of “oddNumber” array)
Can someone please explain that to me. Thank you