Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more: (untagged)
"Draw a class diagram that describes the structure of a system, where the system can display a list of trucks, aeroplanes, cars, boats and bikes as well as detailed view of each vehicle.
Annotate your design to explain how it works and note any relevant assumptions you make."

I have designed a something like:

Vehicle
/ \ \
RoadVehicle Aeroplane Boat
/ \
MotorRoadVehicle Bike MotorBoat

Car Truck


They are not happy with my design and asked me to do it from scratch. They just told me that I am wrong with my comprehension but they did not provide any clues. Could any one give me any ideas to improve this design?
Posted
Updated 12-Aug-14 23:43pm
v2
Comments
OriginalGriff 13-Aug-14 4:26am    
From that?
No, probably not.

This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind.
Use the "Improve question" widget to edit your question and provide better information.
Steven Shahbazi 13-Aug-14 5:44am    
sorry but I'm not sure how I can post my image here so you can see my design more clearly
Richard MacCutchan 13-Aug-14 5:15am    
but seems that it is not correct. Can anyone help me please?
How? We have no idea who decides that your design is not correct, or why. You need to talk to the person who set the task and the one who marked it, and find out what they are expecting from you.

1 solution

You drawing shows just the (rather detailed) inheritance relationship. It lacks, for instance, the show method. You possibly have also to show the container class.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900