Skip to content

Glossary: Software Design Patterns in Java

Copy constructor

A constructor that builds a new object by copying another one, including any mutable list inside. It does the prototype pattern's job for classes that aren't records.

Where the book teaches it

Related terms

Prototype