- 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.
推薦閱讀
- Visual Basic程序開發(學習筆記)
- CentOS 7 Server Deployment Cookbook
- Visual C++實例精通
- Learning SQLite for iOS
- Hands-On Microservices with Kotlin
- C語言程序設計案例精粹
- Ext JS 4 Web Application Development Cookbook
- 程序是怎樣跑起來的(第3版)
- Oracle Exadata專家手冊
- Spring快速入門
- ANSYS Fluent 二次開發指南
- 微信小程序全棧開發技術與實戰(微課版)
- 智能手機APP UI設計與應用任務教程
- 基于SpringBoot實現:Java分布式中間件開發入門與實戰
- Oracle數據庫編程經典300例