The prototype pattern is a creational design pattern in software development. It is used when the type of objects to create is determined by a prototypical instance, which is cloned to produce new objects.
If the cost for creating a new object is expensive and costs resources.
#java #design-patterns #code #tutorial #prototype-design-pattern #design pattern