Skip to content

Commit 1c022de

Browse files
authored
Update README.md
1 parent fa12704 commit 1c022de

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

‎Creational/Builder/README.md‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#Defination
1+
## Definition
22

33
```Separates object construction from its representation```
44

@@ -8,7 +8,7 @@
88

99

1010

11-
##**Context:(`WHEN TO USE?`)**
11+
## **Context:(`WHEN TO USE?`)**
1212
__Builder Pattern is used when:__
1313

1414
1.the creation algorithm of a complex object is independent from the parts that actually compose the object.
@@ -17,26 +17,26 @@ __Builder Pattern is used when:__
1717

1818
3.This template is used when we want to encapsulate the creation of a complex object.
1919

20-
##**Problem:(`WHY USE ?`)**
20+
## **Problem:(`WHY USE ?`)**
2121

2222
What are we trying to solve?
2323

24-
##**Solution:(`HOW TO ?`)**
24+
## **Solution:(`HOW TO ?`)**
2525

2626
How does using this pattern solve our proposed problem?
2727
Implementation: What does the implementation look like?
2828

29-
##**Implementation:(`SYNTAX`)**
29+
## **Implementation:(`SYNTAX`)**
3030

3131

3232
![Builder Implementation](builder-pattern-implementation.png)
3333

3434

3535

36-
##**Examples:(`USE CASE`)**
36+
## **Examples:(`USE CASE`)**
3737

3838

39-
##Example 1 - Vehicle Manufacturer.
39+
## Example 1 - Vehicle Manufacturer.
4040

4141

4242
![Builder Text Converter](builder-pattern-vehicle-example.gif)
@@ -45,7 +45,7 @@ Implementation: What does the implementation look like?
4545
~~~~
4646
Let us take the case of a vehicle manufacturer that, from a set of parts, can build a car, a bicycle, a motorcycle or a scooter. In this case the Builder will become the VehicleBuilder. It specifies the interface for building any of the vehicles in the list above, using the same set of parts and a different set of rules for every type of type of vehicle. The ConcreteBuilders will be the builders attached to each of the objects that are being under construction. The Product is of course the vehicle that is being constructed and the Director is the manufacturer and its shop.
4747
~~~~
48-
#####The classes and objects participating in this pattern are:
48+
##### The classes and objects participating in this pattern are:
4949

5050
- **Builder** (VehicleBuilder)
5151
~~~~
@@ -70,7 +70,7 @@ specifies an abstract interface for creating parts of a Product object
7070
~~~~
7171

7272

73-
###[PHP Example Code](/)
73+
### [PHP Example Code](/)
7474

7575

7676
Example 2 - Students Exams.

0 commit comments

Comments
 (0)