SOFTWARE DESIGN
DESIGN PATTERNS
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
true
|
|
false
|
|
Either A or B
|
|
None of the above
|
Detailed explanation-1: -The Builder design pattern solves problems like: How can a class (the same construction process) create different representations of a complex object? How can a class that includes creating a complex object be simplified?
Detailed explanation-2: -Expert-Verified Answer Design pattern in c program are Lazy initialisation, singleton, object pool, object state etc. In java there are 23 design pattern they are Creational, structural and behavioural . Hence, Therefore the statement 1 is not true.
Detailed explanation-3: -The use of the builder pattern can make the code more verbose and harder to read, because it involves creating separate classes for the builder and the object being built. The builder pattern is most commonly used to create immutable objects. 27-Dec-2022