Prototype
-
PrototypeModeling/DesignPattern 2020. 2. 26. 00:41
1. Overview We have a complex object that is costly to create. To create more instances of such class, we use an existing instance as our prototype. Prototype will allow us to make copies of the existing objects and save us from having to recreate objects from scratch. 2. Description 2.1 Implementation Prototype class must implement Cloneable interface Prototype Class should override the clone m..