Skip to content

Glossary: Software Design Patterns in Java

Prototype

Also written: prototype pattern, with method

A pattern that makes new objects by copying a ready-made one and changing a little. For records, a `withQty` method returns a new record with one field changed.

Where the book teaches it

Related terms

Copy constructorRecord