Polski

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

In this group: Creational patterns