Exemplo n.º 1
0
 public Cient(IClothesFactory factory)
 {
     _shirt    = factory.CreateShirt();
     _trousers = factory.CreateTrousers();
 }
Exemplo n.º 2
0
 public AbstractFactoryDP(IClothesFactory factory)
 {
     _shirt    = factory.CreateShirt();
     _trousers = factory.CreateTrousers();
 }