Reputation: 29168
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.
Upvotes: 1
Views: 1332
Reputation: 2936
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
Upvotes: 1