This question already has an answer here:<ul><li> <a href="/questions/1696927/whats-is-the-difference-between-include-and-extend-in-use-case-diagram" dir="ltr" rel="nofollow">What's is the difference between include and extend in use case diagram?</a> <span class="question-originals-answer-count"> 19 answers </span> </li> </ul>
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??Answer1:
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 <a href="http://www.agilemodeling.com/artifacts/useCaseDiagram.htm" rel="nofollow">Extends and Includes in a Usecase Diagram</a>.