Khumana Ram
What do you think where we can use Prototype design pattern?
  • Dhanik Sahni
    May, 2017 23

    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.

    • 2


Most Popular Job Functions


MOST LIKED QUESTIONS