Creational patterns
Prototype
New objects are made by cloning an existing instance instead of building them from scratch.
Article
Prototype – a new object as a copy of a ready-made template
Prototype creates objects by cloning a configured instance instead of building them from scratch. We explain the difference between shallow and deep copies using exam templates as an example.
Around the topic
- Prototype · Design Patterns Revisited · Game Programming Patterns article · web · Robert Nystrom
- Prototype article · web · Refactoring.Guru
- Design Patterns: Elements of Reusable Object-Oriented Software book · openlibrary · Erich Gamma, John Vlissides, Richard Helm, Ralph Johnson
- Effective Java book · openlibrary · Joshua Bloch
- Prototyp / Prototype article · web · Refactoring.Guru