Design Pattern: Prototype Pattern in Java
Prototype pattern is used to create a new object by cloning an existing one, to reduce the resource usage of object creation. This article demonstrates Prototype pattern implementations in Java.
Prototype pattern is used to create a new object by cloning an existing one, to reduce the resource usage of object creation. This article demonstrates Prototype pattern implementations in Java.
Prototype pattern defines the process of cloning an existing object and creating a new object from that. When we want to simplify the creation process of an object and optimize the performance of object creation, we can clone an existing object and create a new one from that.