我已经要求绘制这里描述的类图: [英] I have asked to draw a class diagram described here:

查看:81
本文介绍了我已经要求绘制这里描述的类图:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

绘制一个描述系统结构的类图,系统可以显示卡车,飞机,汽车,船只和自行车列表以及每辆车的详细视图。

诠释您的设计以解释它的工作原理并记下您所做的任何相关假设。



我设计了类似的东西:



车辆

/ \ \

RoadVehicle飞机船

/ \

MotorRoadVehicle Bike MotorBoat



汽车卡车





他们不满意我的设计并让我从头开始做。他们只是告诉我,我的理解错了,但他们没有提供任何线索。任何人都可以给我任何改进这种设计的想法吗?

"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?

推荐答案

你的绘图只显示了(相当详细的)继承关系。例如,它缺少 show 方法。您可能还要显示容器类。
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.


这篇关于我已经要求绘制这里描述的类图:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆