Skip to content

Latest commit

 

History

History
5 lines (3 loc) · 180 Bytes

File metadata and controls

5 lines (3 loc) · 180 Bytes

原型模式

原型模式用于快速复制具有相同属性的自身对象.

一般是通过实现实现: Clone()接口来实现,注意必须返回新的内存实例.