- 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.
推薦閱讀
- Building Modern Web Applications Using Angular
- 單片機(jī)C語(yǔ)言程序設(shè)計(jì)實(shí)訓(xùn)100例:基于STC8051+Proteus仿真與實(shí)戰(zhàn)
- Java應(yīng)用開發(fā)與實(shí)踐
- Java Web應(yīng)用開發(fā)技術(shù)與案例教程(第2版)
- 編譯系統(tǒng)透視:圖解編譯原理
- Visual FoxPro程序設(shè)計(jì)習(xí)題集及實(shí)驗(yàn)指導(dǎo)(第四版)
- Hands-On Nuxt.js Web Development
- Instant Debian:Build a Web Server
- Cocos2d-x by Example:Beginner's Guide(Second Edition)
- Node.js從入門到精通
- Mudbox 2013 Cookbook
- 深度學(xué)習(xí)程序設(shè)計(jì)實(shí)戰(zhàn)
- Java程序設(shè)計(jì)教程
- Python Automation Cookbook
- 深入實(shí)踐C++模板編程