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: README.md
+7-2
Original file line number
Diff line number
Diff line change
@@ -551,6 +551,8 @@ If you are creating several different factories, then they should inherit from s
551
551
552
552
-**[Prototype](#4-prototype).** The Prototype pattern is generally used if you want to make a copy of an existing object, while the Factory pattern is generating new objects. But some argue you can put the Prototype pattern inside of the Factory pattern.
553
553
554
+
-**[Object Pool](#18-object-pool).** The factory doesn't have to create new objects - it can be a recycling plant if you combine Factory with Object Pool.
555
+
554
556
555
557
556
558
## 22. Facade
@@ -595,17 +597,20 @@ Define a template method in the parent class which consists of calling several m
0 commit comments