<extend> dependency in UML

Except in the UML context, if A extends B, then B is a subset of A.

But in UML this is the other way around, say, if A extends B, then A is a subset of B,

why is it so strange?

+3
source share
3 answers

Dependency is <<extend>>used only for use cases. This means that in some cases, one use case extends to another. In the following:

Extends use case

. " " " ". , " " " ".

/.


<<extend>> . , !

- , . , :

  • .

:
1a. " "
  
1. " "
  

" " case "View Account details" . , -, .

UML, "UML Distilled" . , , , <<extend>>.

+6

( , , - , ), .

- , , . , , , , ( ).

: http://www.agilemodeling.com/essays/useCaseReuse.htm. , . , .

+1

UML "/". "/"; "/".

If B is a generalization of A (that is, A is inherited from B), then A is a subset of B. This should become clear from the is-a relationship: if every A is B, then A is clearly a subset of B. In your terminology, if A extends B, A is a subset of B.

A type is a predicate: for each object you can determine whether it belongs to a predicate. Extending the predicate to make it more restrictive.

-2
source

Source: https://habr.com/ru/post/1713540/


All Articles