1
Reply

what is prototype design pattern in .net

Jennifer Sack

Jennifer Sack

12y
1.5k
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.