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
Intent: Provide an interface for creating families of related or dependent objects without specifying their concrete classes.
8
7
9
8
10
-
Builder
11
-
=======
9
+
##Builder
12
10
Intent: Separate the construction of a complex object from its representation so that the same construction process can create different representations.
13
11
14
12
15
-
Factory Method
16
-
==============
13
+
##Factory Method
17
14
Intent: Define an interface for creating an object, but let subclasses decide which class to instantiate. Factory Method lets a class defer instantiation to subclasses.
0 commit comments