Question 21
A company is building a custom laptop ordering system. Every laptop must have: • Processor • RAM Additionally, customers may optionally choose: • Graphics card • Storage type • Operating system • Extended warranty • Pre-installed software Originally, the development team tried to handle all combinations by creating many versions of the laptop constructor for different combinations of options, which quickly became unmanageable. They then redesigned the system so that: • The customer first chooses the mandatory features • Then selects any number of optional features in any order Which design pattern best fits this redesign?
Factory Pattern
Builder Pattern
Adapter Pattern
Facade Pattern