I can see that a lot of you create 10 cats using a for loop, l don't get how could that work. Doesn't it create the same object all the time - cause it has the same reference - cat? To really have 10 cats isn't it necessary for them to have different references, like cat1, cat2 etc? I passed the task by just typing it 10 times like: Cat cat1 = new Cat(); Cat cat2… but I'm there must be a shorter way to do it
How can you do it with for looop?