Object-Oriented Programming

Builder Pattern

English

Overview

A design pattern that constructs a complex object with many optional fields step by step.

Details

It avoids the readability problem of a constructor with too many parameters (the "telescoping constructor" problem). It's often written as a readable method chain—"set this, then set that"—and is commonly used to initialize objects that have many configuration options.

More Programming terms