UML Diagram - Rental Company
Computer Science and ICT discussion, revision, exam and homework help.
-
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. -
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. -
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
customersLast edited by ronnie; 25-04-2008 at 00:04.