You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CreationalPatterns/AbstractFactory/README.md
+25-12Lines changed: 25 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -14,17 +14,6 @@ The Abstract Factory Pattern provides an interface for creating families of rela
14
14
* Encapsulate object creation in a separate (factory) object. That is, define an interface (AbstractFactory) for creating objects, and implement the interface.
15
15
* A class delegates object creation to a factory object instead of creating objects directly.
16
16
17
-
## Benefits
18
-
19
-
* Follows the Open/Close Principle.
20
-
* Allows building families of product objects and guarantees their compatibility.
21
-
* Avoids tight coupling between concrete products and code that uses them.
22
-
* Divides responsibilities between multiple classes.
23
-
24
-
## Drawbacks
25
-
26
-
* Increases overall code complexity by creating multiple additional classes.
27
-
28
17
## Common Structure
29
18
30
19

@@ -39,7 +28,25 @@ The Abstract Factory Pattern provides an interface for creating families of rela
39
28
* defines a product object to be created by the corresponding concrete factory
0 commit comments