SOFTWARE DESIGN
DESIGN PATTERNS
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
The ____ pattern declares a common interface for all objects that support cloning. This interface lets you clone an object without coupling your code to the class of that object.
|
Abstract Factory
|
|
Prototype
|
|
Builder
|
|
Factory Method
|
Explanation:
Detailed explanation-1: -Prototype pattern refers to creating duplicate object while keeping performance in mind.
Detailed explanation-2: -what is Prototype design pattern ?! cloning of an existing object instead of creating new one and can also be customized as per the requirement. Prototype design pattern is used in scenarios where application needs to create a number of instances of a class, which has almost same state or differs very little.
Detailed explanation-3: -Prototype Design Pattern The prototype pattern is a creational design pattern that lets you create objects by cloning existing objects, rather than creating new objects from scratch.
There is 1 question to complete.