skip to Main Content

Welcome

Say hello to the toggle bar. This is an optional section you can use to display any content you'd like. Simply select a page from the theme panel and the content of the page will display here. You can even use the drag and drop builder to create this! This is a perfect place for your company mission statement, alerts, notices or anything else.

Get In Touch

Email: support@total.com
Phone: 1-800-Total-Theme
Address: Las Vegas, Nevada

Our Location

togglebar-map

Builder Pattern

Post Series: Creational Design Pattern

Useful

  1. Need to create an object in several steps (a step by step approach).
  2. The creation of objects should be independent from the way the object’s parts are assembled.
  3. Runtime is required over the creation process .

 

 

Diagram

  1. Builder: This is an interface which is used to define all the steps to create a product
  2. ConcreteBuilder: This is a class which implements the Builder interface to create complex product.
  3. Product: This is a class which defines the parts of the complex object which are to be generated by the builder pattern.
  4. Director: This is a class which is used to construct an object using the Builder interface.

Example

 

Resource

https://www.stdio.vn/articles/read/481/design-pattern-builder-pattern
http://www.dotnettricks.com/learn/designpatterns/builder-design-pattern-dotnet

 

Leave a Reply

Your email address will not be published. Required fields are marked *

Back To Top