Skip to content

Glossary: Software Design Patterns in C++

Prototype

Also written: prototype pattern

A pattern that makes new objects by copying a ready-made one and changing a little, like Bloom Café's weekly order. In C++ a struct copies with `=`, and a base pointer uses a `clone()` function.

Where the book teaches it

Related terms

Creational pattern