mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-03 07:13:02 +00:00
Update README.md
This commit is contained in:
1 parent
a1da1e4973
commit
8b5f532a50
1 file changed
+2
@@ -118,10 +118,12 @@ Use the Simple Factory pattern when you only care about the creation of a object
|
||||
and manage it.
|
||||
|
||||
Pros
|
||||
|
||||
* Allows keeping all objects creation in one place and avoid of spreading 'new' key value across codebase.
|
||||
* Allows to writs loosely coupled code. Some of its main advantages include better testability, easy-to-understand code, swappable components, scalability and isolated features.
|
||||
|
||||
Cons
|
||||
|
||||
* The code becomes more complicated than it should be.
|
||||
|
||||
## Related patterns
|
||||
|
||||
Reference in new issue
Block a user