何时使用命名类“book:Book”的序列图与匿名“:Book”和下划线
我什么时候使用命名对象,例如“book:Book”与“:Book”。大多数书籍都在一张图表中包含这两种内容。有时我应该使用命名而其他人使用匿名吗?
还有,下划线代表什么我记得在某处读过......
When do I use named objects like "book:Book" vs ":Book". Most books have both in a single diagram. Is there sometimes I should use named and others anonymous?
Then also, what do the Underline represent I remember reading it somewhere ...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据要求:-)
:书籍通常意味着书籍的任意实例,要点是特定实例不相关。书:书通常意味着实例身份在某种程度上是重要的。例如,想象一下在订单中添加两本书。您可以将它们命名为 book1 和 book2,以便区分它们。
嗯。
As requested :-)
:Book usually means an arbitrary instance of book, point being the specific instance isn't relevant. book:Book usually means the instance identity is significant in some way. For example, imagine adding two books to an order. You might name them book1 and book2 so you can differentiate them.
hth.