Scala Design Patterns.
上QQ阅读APP看书,第一时间看更新

The prototype design pattern

This design pattern allows object creation using a clone() method from an already created instance. It can be used in cases when a specific resource is expensive to create or when the abstract factory pattern is not desired.