www.classic-and-class.com - www.evalulearn.com
Interfaces are the glue of OO.
Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
Originally posted by Ajith Kallambella:
In my opinion, factory--->creates---->object does not necessarily mean factory depends on object. ... I am a little hesitant to call that as a dependency relationship.
Originally posted by Ajith Kallambella:
Consider this - if you change the behaviour of the object created, does factory get affected?
Originally posted by Thomas Taeger:
For the other way around we need to change the association to a dependency!?!?
Originally posted by Thomas Taeger:
- - If there is any directed association backwards needed, ...
- - - the Factory must have passed a back-reference to ConcreteProduct, ...
- - - This must be modelled as a dependency (dashed line) instead of an association (solid line).
Originally posted by Thomas Taeger:
- - For enabling "ConcreteIterator ---fetches-objects-from---> ConcreteAggregate":
- - - it must have got a referenc back to the creating ConcreateAggregate, ...
- - - This is assured by modelling "- - -creates- - ->" with a dashed line.
Originally posted by Ajith Kallambella:
I would love to hear what others think!
www.classic-and-class.com - www.evalulearn.com
Interfaces are the glue of OO.
Originally posted by Thomas Taeger:
There are four types of dependency in UML
...
- usage dependency:
...
- - - <<create>>: see question below
...
- - If there is any directed association backwards needed, ...
- - - the Factory must have passed a back-reference
www.classic-and-class.com - www.evalulearn.com
Interfaces are the glue of OO.
He repaced his skull with glass. So you can see his brain. Kinda like this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|