问题
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??
回答1:
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.
来源:https://stackoverflow.com/questions/5313623/extends-vs-include-in-usecase