4 Prototype Design Pattern
Prototype Pattern is one of Creational Design Pattern in Gang Of four design patterns. In this pattern “You are creating duplicate object or clone of current object. This pattern is used when you want to enhance performance of application and creation of object is costly or complex.” Like other design patterns prototype design pattern hides object creation from the client. In Prototype design pattern instead of creating non-initialized object , It return a new object that is initialized with values copied it from prototype –or a sample – object
Prototype Pattern is one of Creational Design Pattern in Gang Of four design patterns. In this pattern “You are creating duplicate object or clone of current object. This pattern is used when you want to enhance performance of application and creation of object is costly or complex.” Like other design patterns prototype design pattern hides object creation from the client. In Prototype design pattern instead of creating non-initialized object , It return a new object that is initialized with values copied it from prototype –or a sample – object