- Spring 5 Design Patterns
- Dinesh Rajput
- 101字
- 2021-07-08 09:59:33
UML class structure
The following UML diagram shows all the components of the Prototype design pattern:

UML diagram for Prototype design pattern
Let's see these components as listed in following points:
- Prototype: The Prototype is an interface. It is uses the clone method to create instances of this interface type.
- ConcretePrototype: This is a concrete class of the Prototype interface to implement an operation to clone itself.
- Client: This is a caller class to create a new object of a Prototype interface by calling a clone method of the prototype interface.
Let's see a sample implementation of the prototype design pattern.
推薦閱讀
- WildFly:New Features
- LabVIEW程序設計基礎與應用
- Learning ArcGIS Pro 2
- Hands-On Data Structures and Algorithms with JavaScript
- Learning SciPy for Numerical and Scientific Computing(Second Edition)
- Solr Cookbook(Third Edition)
- Go語言精進之路:從新手到高手的編程思想、方法和技巧(2)
- ASP.NET程序開發范例寶典
- C++20高級編程
- Programming with CodeIgniterMVC
- LabVIEW虛擬儀器程序設計從入門到精通(第二版)
- Scala編程(第5版)
- Swift語言實戰晉級
- FPGA嵌入式項目開發實戰
- RESTful Web Clients:基于超媒體的可復用客戶端