I read through the bgt chapters 10 and 11. I understand the inheritance and interfaces. But here is my question. Let's say I have 2 people. So i have 2 objects with different names, amount of money, and popularity status. How would I refer to player 1's money? Or player 2's money? Do I need to add an identity variable and say, if(players[j].id==1)
//code
I initially wrote i, but site gave an error so I changed to j.
What is the i for? Is that where I enter the player? Like for example, players[2].money, will that refer to player 2's money? I have many more questions but this one is the most confusing