I am having problems understanding the purpose of classes. Is it this. If I had a football game, I would create a class for footballer, then derive multiple footballers from that class, rather than spending ages writing the same code over and over again? Does someone have an easy explanation that I can find easier to understand? I have been following the tutorials on www dot cprogramming dot com and they can be exhaustive.
You can create a class "Footballer" and create objects of it to create multiple footballers without the need of duplicating code. Let me know if it's still unclear
As qprojects said create a Footballer class , create an array of Foolballer instance like Footballer * allFootballer = new Footballer[15] ;