Home  /  Questions  /  Question

50   50
Oct 15, 2014

Abstract Factory UML representation

Shouldn't the arrow from Client to AbstractFactory be a dotted line in diagram http://www.dofactory.com/net/abstract-factory-design-pattern ?

the only place where client uses abstractfactory is in the following code. so it should be a weak-dependency, and thereby a dotted line seems to more right

 public Client(AbstractFactory factory)


      _abstractProductB = factory.CreateProductB();

      _abstractProductA = factory.CreateProductA();



0 answers

Write Your Answer