Sign in Go Pro

Design Patterns

The Builder Pattern


Up next


In this lesson, we are going to explore the Builder pattern. The Builder pattern is used to create complex objects (or objects with a huge number of parameters) without the need of a complex logic or to remember the exact order and meaning of all the parameters.

In this lesson you will learn ...

  • What the Builder pattern is
  • How to refactor an existing class to make use of the builder
  • How to use the builder with and without fluid syntax
  • Where the Builder is used on Android


Builder Pattern - Wikipedia

Source code

Sample code




Need more of it.

You need to go PRO to post comments.

Lessons in Design Patterns