Questions about potential objects in my project
Posted: Tue Apr 26, 2005 11:00 am
Hello all..
I'm developing a ticket sales system and would like to do it using OOP.
I, as a programmer, have trouble keeping all my code in order and I think that this approch will help me tremendously. I'm looking for some experienced OOP develpers to help me with the design phase.
I have done some planning and have figured out that i'll need the following objects (feel free to recommend that I add or remove any if you see fit)
1. Venue (i.e. where the events will take place)
2. Event (i.e. The event to which the tickets will be sold)
3. Section (i.e. These sections are used to divide the venue for pricing purposes)
4. Ticket (i.e. one row per ticket. contains the location of the ticket in the venue as well as what event it is for)
There will be others but these are the ones i'm concerned about right now..
my question:
How will these related to each other? I've had some training and leaned that Inheritance is determined by using the "is a" phrase.. and none of the objects above "are" any of the others..
How do I express that Events have tickets and sections? and that sections have tickets.. Venues will have events..or.. events will have venues.. either way i suppose..
How would you approach this?
TIA!
Will
I'm developing a ticket sales system and would like to do it using OOP.
I, as a programmer, have trouble keeping all my code in order and I think that this approch will help me tremendously. I'm looking for some experienced OOP develpers to help me with the design phase.
I have done some planning and have figured out that i'll need the following objects (feel free to recommend that I add or remove any if you see fit)
1. Venue (i.e. where the events will take place)
2. Event (i.e. The event to which the tickets will be sold)
3. Section (i.e. These sections are used to divide the venue for pricing purposes)
4. Ticket (i.e. one row per ticket. contains the location of the ticket in the venue as well as what event it is for)
There will be others but these are the ones i'm concerned about right now..
my question:
How will these related to each other? I've had some training and leaned that Inheritance is determined by using the "is a" phrase.. and none of the objects above "are" any of the others..
How do I express that Events have tickets and sections? and that sections have tickets.. Venues will have events..or.. events will have venues.. either way i suppose..
How would you approach this?
TIA!
Will