SOFTWARE ENGINEERING

SOFTWARE DESIGN

DESIGN PATTERNS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Builder Patterns never work with legacy code:
A
true
B
false
C
Either A or B
D
None of the above
Explanation: 

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

There is 1 question to complete.