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
@@ -12,12 +12,12 @@ Decouple an abstraction from its implementation so that the two can vary indepen
12
12
The classes and objects participating in this pattern are:
13
13
14
14
###Abstraction (BusinessObject)
15
-
defines the abstraction's interface.
16
-
maintains a reference to an object of type Implementor.
15
+
*defines the abstraction's interface.
16
+
*maintains a reference to an object of type Implementor.
17
17
###RefinedAbstraction (CustomersBusinessObject)
18
-
extends the interface defined by Abstraction.
18
+
*extends the interface defined by Abstraction.
19
19
###Implementor (DataObject)
20
-
defines the interface for implementation classes. This interface doesn't have to correspond exactly to Abstraction's interface; in fact the two interfaces can be quite different. Typically the Implementation interface provides only primitive operations, and Abstraction defines higher-level operations based on these primitives.
20
+
*defines the interface for implementation classes. This interface doesn't have to correspond exactly to Abstraction's interface; in fact the two interfaces can be quite different. Typically the Implementation interface provides only primitive operations, and Abstraction defines higher-level operations based on these primitives.
21
21
###ConcreteImplementor (CustomersDataObject)
22
-
implements the Implementor interface and defines its concrete implementation.
22
+
*implements the Implementor interface and defines its concrete implementation.
constructs and assembles parts of the product by implementing the Builder interface
18
-
defines and keeps track of the representation it creates
19
-
provides an interface for retrieving the product
17
+
*constructs and assembles parts of the product by implementing the Builder interface
18
+
*defines and keeps track of the representation it creates
19
+
*provides an interface for retrieving the product
20
20
###Director (Shop)
21
-
constructs an object using the Builder interface
21
+
*constructs an object using the Builder interface
22
22
###Product (Vehicle)
23
-
represents the complex object under construction. ConcreteBuilder builds the product's internal representation and defines the process by which it's assembled
24
-
includes classes that define the constituent parts, including interfaces for assembling the parts into the final result
23
+
*represents the complex object under construction. ConcreteBuilder builds the product's internal representation and defines the process by which it's assembled
24
+
*includes classes that define the constituent parts, including interfaces for assembling the parts into the final result
declares the factory method, which returns an object of type Product. Creator may also define a default implementation of the factory method that returns a default ConcreteProduct object.
20
-
may call the factory method to create a Product object.
19
+
*declares the factory method, which returns an object of type Product. Creator may also define a default implementation of the factory method that returns a default ConcreteProduct object.
20
+
*may call the factory method to create a Product object.
21
21
###ConcreteCreator (Report, Resume)
22
-
overrides the factory method to return an instance of a ConcreteProduct.
22
+
*overrides the factory method to return an instance of a ConcreteProduct.
0 commit comments