Factory method UML diagram clarification
-
11-10-2019 - |
Pergunta
I was going through the factory method pattern describe here. I didn't quite get the meaning of the arrows marked from Application
to Document
and from MyApplication
to MyDocument
. Can anyone help to me to understand this notation.
Solução
The relation between Application
and Document
is an Aggregation. It means that an Application
(Whole) contains Documents
(Parts).
The relation between MyApplication
and MyDocument
is a Dependency. It means that MyApplication may change when MyDocument changes. In this case it is a <> Dependency, i.e. MyApplication
uses MyDocument
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow