Back to list
Views:   2.2K
Replies:  0
Archived

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();

    }

Kiran Indukuri, Oct 15, 2014


Stay Inspired!
Join other developers and designers who have already signed up for our mailing list.
Terms     Privacy     Licensing       EULA       Sitemap      
© Data & Object Factory, LLC.
Made with    in Austin, Texas.      Vsn 1.3.0