- Hands-On Design Patterns with Kotlin
- Alexey Soshin
- 47字
- 2021-06-25 20:49:28
Subclassing
When calling the constructor, we always instantiate the class we specify. On the other hand, calling a Static Factory Method may produce either instance of the class, or one of its subclasses. We'll come to this after discussing the implementation of this design pattern in Kotlin.
推薦閱讀
- Google Apps Script for Beginners
- Bootstrap Site Blueprints Volume II
- 零基礎學Java(第4版)
- Python應用輕松入門
- Java Web開發(fā)技術教程
- 重學Java設計模式
- Mastering Drupal 8 Views
- Mastering JBoss Enterprise Application Platform 7
- Spring核心技術和案例實戰(zhàn)
- 精通Python自動化編程
- PLC應用技術(三菱FX2N系列)
- 21天學通C++(第5版)
- Python3.5從零開始學
- Django 3.0入門與實踐
- 面向對象程序設計及C++(第3版)