1
Reply

What do you think where we can use Prototype design pattern?

Khumana Ram

Khumana Ram

8y
458
0
Reply

    It can be used in situation where you need exact duplicate copy of object. Both object, original and copied object have different memory space. So if we change any thing in one object it will not reflect in another object. Example:Let us take a example of banking system. One of the customer say, i want to open an account for my wife with same feature available in my account. So we can implement prototype pattern to create same feature account. In .NET we can use MemberwiseClone for creating that.