Ok so I've started learning Java and am half way the book 'Head First Java' (which isn't a bad book btw); but what they've failed to mention is when you know when you need to make a new class. I've learnt that each Class is for each object but how do you know what objects you need?
As an example, the book is guiding me through a battleship game whereby each battleship is called a 'DotCom'. The book has made 3 classes: DotComBust, DotCom and GameHelper. In my naive view on this I would have thought that DotCom is the only object but can anyone explain why I'm wrong?
Any help would be appreciated :)