开发者

extends vs include in usecase [duplicate]

开发者 https://www.devze.com 2023-02-17 11:32 出处:网络
This question already has answers here: What's is the difference between include and extend in use case diagram?
This question already has answers here: What's is the difference between include and extend in use case diagram? (20 answers) 开发者_运维知识库 Closed 4 years ago.

what is the difference between extends and includes in usecase UML?

if I hava login usecase and and addGroup usecase, the admin should login to be able to add group , what is the relation here??


One means it is done in the context of of another (almost like a function call) and the other means it is done as an alternative as another. Be careful, they are not using 'extends' and 'includes' in the same manner as OO programming languages. There are subtle differences. I don't remember which is which and would rather not guess.

In all my years of using UML, I still have not come across a situation where either term provided any benefit to a Usecase Diagram.

Here is a page that discusses Extends and Includes in a Usecase Diagram.

0

精彩评论

暂无评论...
验证码 换一张
取 消