3 ms·
The Builder pattern includes setting sensible defaults on the built object before building it. You configure the built object in the constructor of the Builder,
by jacques_chester 11y ago
The Builder pattern includes setting sensible defaults on the built object before building it. You configure the built object in the constructor of the Builder, before anyone starts updating fields.
You can achieve this through constructors or setters; Builder itself is agnostic.