SOFTWARE DESIGN
DESIGN PATTERNS
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
The Builder pattern suggests that you extract the object construction code out of its own class and move it to separate objects called ____
|
bricks
|
|
instances
|
|
builders
|
|
walls
|
Explanation:
Detailed explanation-1: -Builder pattern aims to “Separate the construction of a complex object from its representation so that the same construction process can create different representations.” It is used to construct a complex object step by step and the final step will return the object.
Detailed explanation-2: -Builder pattern builds a complex object using simple objects and using a step by step approach. This type of design pattern comes under creational pattern as this pattern provides one of the best ways to create an object. A Builder class builds the final object step by step.
There is 1 question to complete.