- 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 6.0程序設計計算機組裝與維修
- 青少年美育趣味課堂:XMind思維導圖制作
- Mastering Scientific Computing with R
- 輕松上手2D游戲開發:Unity入門
- Unity&VR游戲美術設計實戰
- 貫通Tomcat開發
- Python Social Media Analytics
- Visual C#(學習筆記)
- Learning NHibernate 4
- Appcelerator Titanium Smartphone App Development Cookbook
- 人件集:人性化的軟件開發
- 精通Oracle 12c 數據庫管理
- Learning Java by Building Android Games
- Test-Driven Java Development(Second Edition)
- Head First Go語言程序設計