DEV Community

Discussion on: Builder Design Pattern

Collapse
 
nishparadox profile image
Nishan Pantha

Yeah. The whole point is to avoid the constructor of Burger being populated. This way, it will allow you to create chained calls to the builder and yes the side effect is the immutability of Burger subsequently.