9/18/2023 0 Comments Cricket program in java![]() ![]() ![]() Essentially it lets you create Java objects, modify their values using their methods and then use a save method. You may want to look at Hibernate in the future. Good to see you are learning about databases. This is worth thinking about as it could affect your design. Looking ahead you may want to write the data to a database so you can keep track of player's progress. I'm not sure how you would model the runs/wickets though. ![]() You probably want a team class with a list of batsman as an attribute. It sounds like you have several classes: Player - this has details of runs/catches I suspect you don't want to make batsman a seperate class because every player could go to bat (from my limited memory of cricket). Following on from Paul's excellent thoughts on scoring it you need to design the Java classes. I want to make a cricket scoring program (in java) for my school. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |