Skip to content

Glossary: Software Design Patterns in C++

Method chaining

Also written: chaining, fluent interface

Chained calls where each returns the same object, with `return *this`, so the next call follows straight on. `OrderBuilder().for_customer(ana).add(...).build()` is an example.

Where the book teaches it

Related terms

Builder