Question 17
Back to Exercise
When is the builder pattern the best choice?
- A For classes with one field
- B For objects with many parameters, especially optional ones, built in a readable way Correct
- C For static utility classes
- D For interfaces
Correct Answer: Option B
It avoids the "telescoping constructor" problem.
Discussion & Comments 0
Share your method, a shortcut, or ask about a step you didn't follow.
No comments yet. Be the first to share your solution!