Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between 'includes', 'extends' and 'uses'?

Tags:

In a use case diagram what is the difference between <<includes>>, <<extends>> and <<uses>>? Are <<includes>> and <<uses>> are the same thing?

like image 429
SMUsamaShah Avatar asked Oct 17 '10 13:10

SMUsamaShah


People also ask

What is the difference between include and extend use case?

The include relationship supports the reuse of functionality in a use-case model. In UML modeling, you can use an extend relationship to specify that one use case (extension) extends the behavior of another use case (base).

What is the difference between include and extend?

In simple words, the difference between include and extend is that 'include' is for adding methods only to an instance of a class and 'extend' is for adding methods to the class but not to its instance.

What is the difference between uses and extends?

"includes" and "uses" indicates the mandatory use case where as "extends" indicates the optional use case.


1 Answers

includes and uses are the same. From http://www.agilemodeling.com/essays/useCaseReuse.htm above

An include dependency, formerly known as a uses relationship in UML v1.2 and earlier

like image 77
Guest Avatar answered Sep 28 '22 08:09

Guest