diff --git a/JavaDsaWithTest/src/main/java/org/practice/dsa/design_pattern/builder_pattern/description.md b/JavaDsaWithTest/src/main/java/org/practice/dsa/design_pattern/builder_pattern/description.md new file mode 100644 index 00000000..0e3b6eb7 --- /dev/null +++ b/JavaDsaWithTest/src/main/java/org/practice/dsa/design_pattern/builder_pattern/description.md @@ -0,0 +1,16 @@ +# Overview: +- The Builder Pattern is a creational design pattern that allows constructing complex objects step by step. +- It separates the construction of a complex object from its representation so that the same construction process can +create different representations. + +Intent: +- Separate the construction of a complex object from its representation. +- Allow the same construction process to create different representations. +- Provide a clear and flexible way to build objects. + +### Key Concepts: +- Builder Interface: Defines all the steps required to create the product. +- Concrete Builder: Implements the Builder interface and provides specific implementations of the steps to build the +product. +- Product: The complex object being built. +- Director: Constructs the product using the Builder interface. \ No newline at end of file diff --git a/JavaDsaWithTest/src/main/java/org/practice/dsa/design_pattern/builder_pattern/description.txt b/JavaDsaWithTest/src/main/java/org/practice/dsa/design_pattern/builder_pattern/description.txt deleted file mode 100644 index 8fc57c6b..00000000 --- a/JavaDsaWithTest/src/main/java/org/practice/dsa/design_pattern/builder_pattern/description.txt +++ /dev/null @@ -1,17 +0,0 @@ -Overview: -The Builder Pattern is a creational design pattern that allows constructing complex objects step by step. -It separates the construction of a complex object from its representation so that the same construction process can -create different representations. - -Intent: - -Separate the construction of a complex object from its representation. -Allow the same construction process to create different representations. -Provide a clear and flexible way to build objects. -Key Concepts: - -Builder Interface: Defines all the steps required to create the product. -Concrete Builder: Implements the Builder interface and provides specific implementations of the steps to build the -product. -Product: The complex object being built. -Director: Constructs the product using the Builder interface. \ No newline at end of file