UML Diagram - Rental Company

Computer Science and ICT discussion, revision, exam and homework help.

Announcements Posted on
Ask me ANYTHING - Andrew O'Neill - Buzzcocks comedian, amateur occultist, vegan... 22-05-2013
IMPORTANT: You must wait until midnight (morning exams)/4.30AM (afternoon exams) to discuss Edexcel exams and until 1pm/6pm the following day for STEP and IB exams. Please read before posting, including for rules for practical and oral exams. 28-04-2013
Sign in to Reply
  1. ronnie's Avatar
    • Respected Member
    • Location: Portsmouth
    • Posts: 217
    UML Diagram - Rental Company
    Just doing a UML for a 'typical' car rental company. Iam really new to doing this and is my first year in doing this type of computing courses.

    What sort of classes will be needed for this problem?

    At the moment i have created the main class called "RENTAL" and other classes of:

    Office (rental company has 5 office locations around the country)
    cars (all types of cars available for rental)


    what others will be needed, i know there will be a lot but just can't think of them Can somebody pls give me a start.
  2. Tut.exe's Avatar
    • Vengeful, Imperial Overlord of The Student Room
    • Location: London
    • Posts: 3,511
    Re: UML Diagram - Rental Company
    oof you're pretty much looking for an answer here lolz...

    but the idea is to group thihngs accordingly...

    start with the company, what details you need to rent a car...

    then you think, ah you need the customer's detail... and since the customer's detail is independent to the company then you make a different class called customer's detail...
    then you think about the rental... can the person rent different kind of cars?
    if so then, car types and details are again, independent to the company so you make another class called Car rentals...

    And so on...

    Basically you identify them as 'objects' in the program... each object you need to interact in your program needs to be 'defined'. You define them by creating an individual class. Like a customer, is one object, a car is another, and the company is another object you want to interact... so you store them as classes. But virtually it doesnt have to have the same properties or descriptions as you would in the real world. As in, the cars can have a property of 'How many available'... whereas in the real world, the only properties that you can describe a car is its physical attributes like it's got four wheels and an engine.
  3. ronnie's Avatar
    • Respected Member
    • Location: Portsmouth
    • Posts: 217
    Re: UML Diagram - Rental Company
    hi, thanks a lot of the above explanation. I am a bit clearer now.

    will i be able to use a MemberKeyDictionary to sort out the staff...

    for example

    have abstract class called people, below that

    staff which have like sales, maintenance etc...

    and

    customers
    Last edited by ronnie; 25-04-2008 at 00:04.
Sign in to Reply
Share this discussion:  
Article updates
Moderators

We have a brilliant team of more than 60 volunteers looking after discussions on The Student Room, helping to make it a fun, safe and useful place to hang out.

Reputation gems:
The Reputation gems seen here indicate how well reputed the user is, red gem indicate negative reputation and green indicates a good rep.
Post rating score:
These scores show if a post has been positively or negatively rated by our members.