Sign in Go Pro

Design Patterns

The Builder Pattern

 

Up next

About

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 Links ------- [Builder Pattern - Wikipedia](https://en.wikipedia.org/wiki/Builder_pattern) Source code ------ [Sample code](https://github.com/CasterIO/DesignPatternSample)

Lessons in Design Patterns