Results 1 to 3 of 3
- 11-19-2009, 02:16 PM #1
Member
- Join Date
- Nov 2009
- Posts
- 1
- Rep Power
- 0
Creating new instances of a Match over and over again
Hey there :)
Right well i have a simple game scoring system. You have a Match, a Match consists of 5 sets. All thats simple enough.
I have created a Match class where i store all the match details i.e Name of comp, date, time of match etc.
I have created a Team class where all the team for that match is stored.
I have created a Set class where all the general game rules/set information sits.
Now a couple of questions, im not really sure how i connect all these classes (which hold information for a single Match) together to make it into one Match instance.
I intend on giving each match an ID so that i can save all the information as one.
Finally, do i need some kind of controller class to create a seperate Match instance? As the user will want to score many different games i need to create many Matches, one after another.
Just a little confused at the minute as to how to do that.
- 11-19-2009, 02:18 PM #2
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 7
Uhm, a loop?
- 11-19-2009, 06:05 PM #3
Senior Member
- Join Date
- Nov 2009
- Posts
- 150
- Rep Power
- 4
Similar Threads
-
String match to the linkedlist element
By jboy in forum New To JavaReplies: 3Last Post: 09-06-2009, 07:02 AM -
Need help getting java drawing match to image.
By kiduut in forum New To JavaReplies: 9Last Post: 12-28-2008, 01:55 PM -
Java Developer - Need Job - This is Perfect match
By ravisrivastava2003 in forum Java SoftwareReplies: 0Last Post: 12-10-2008, 07:35 PM -
Get all groups from a regular expression match?
By johann_p in forum New To JavaReplies: 0Last Post: 05-16-2008, 07:50 PM -
Object Reflection: Creating new instances
By Java Tip in forum java.langReplies: 0Last Post: 04-23-2008, 08:13 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks