1
Reply

what is prototype design pattern in .net

Jennifer Sack

Jennifer Sack

Jun 05, 2012
1.5k
0

    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.

    Dhanik Sahni
    May 23, 2017
    0