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.
Glossary: Software Design Patterns in Java
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.