SOFTWARE ENGINEERING

SOFTWARE DESIGN

DESIGN PATTERNS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
You should always use an interface when developing the Builder:
A
true
B
false
C
Either A or B
D
None of the above
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: -Which of the following is correct about Factory design pattern. This type of design pattern comes under creational pattern. Factory pattern creates object without exposing the creation logic to the client. Factory pattern refers to newly created object using a common interface.

There is 1 question to complete.