SOFTWARE DESIGN
DESIGN PATTERNS
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Prototype
|
|
Builder
|
|
Chain of Responsibility
|
|
Abstract Method
|
Detailed explanation-1: -Intent. Builder is a creational design pattern that lets you construct complex objects step by step. The pattern allows you to produce different types and representations of an object using the same construction code.
Detailed explanation-2: -The builder pattern is a design pattern designed to provide a flexible solution to various object creation problems in object-oriented programming. The intent of the builder design pattern is to separate the construction of a complex object from its representation.
Detailed explanation-3: -By contrast, the Abstract Factory Design Pattern is used to create families of related or dependent objects. It’s also sometimes called a factory of factories.
Detailed explanation-4: -Explanation: Iterator pattern represents a way to access the elements of a collection object in sequential manner without the need to know its underlying representation.