- Hands-On Design Patterns with Kotlin
- Alexey Soshin
- 63字
- 2021-06-25 20:49:29
Builder
Sometimes, our objects are very simple, and have only one constructor, be it an empty or non-empty one. But sometimes, their creation is very complex, and based on a lot of parameters. We've seen one pattern already that provides a better constructor—the Static Factory Method design pattern. Now, we'll discuss Builder design pattern, which is somewhat similar and somewhat different.
推薦閱讀
- 程序員面試白皮書(shū)
- Learning Apex Programming
- 零基礎(chǔ)玩轉(zhuǎn)區(qū)塊鏈
- Python計(jì)算機(jī)視覺(jué)編程
- 飛槳PaddlePaddle深度學(xué)習(xí)實(shí)戰(zhàn)
- ASP.NET開(kāi)發(fā)與應(yīng)用教程
- Frank Kane's Taming Big Data with Apache Spark and Python
- Instant Debian:Build a Web Server
- Python編程基礎(chǔ)教程
- Getting Started with RethinkDB
- 計(jì)算機(jī)軟件項(xiàng)目實(shí)訓(xùn)指導(dǎo)
- Azure for Architects
- Mastering Linux Kernel Development
- Kotlin核心編程
- Spring Boot實(shí)戰(zhàn):從0開(kāi)始動(dòng)手搭建企業(yè)級(jí)項(xiàng)目