课堂图的课程UML
我目前正在研究一个示例设计图书馆管理系统的课程图。
我真的无法理解创建两个类的目的: book
and book item item
。
我难道难道难道不只是从 book item
类插入 book> book
类,而只保留两个类别的一个类?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是一个有趣的示例:
book
是指发布者或库的目录中的一本书。它有一个ISBN可以唯一地识别它,标题,作者等。bookitem
是指该书的副本,该副本由图书馆拥有并借给用户。但是此示例需要改进:
bookitems
可以参考相同的book
,并且该模型不会捕获此现实。This is an interesting example:
Book
refers to an book in the catalogue of the publisher or the library. It has an ISBN to uniquely identify it, a title, an author and so on.BookItem
refers to a copy of that book that is owned by the the library and is lend to the users.But this example requires improvements:
BookItems
may refer to the sameBook
, and the model does not capture this reality.