Factory Method
本文最后更新于:2022年8月25日 上午
Define an interface for creating an object, but let subclasses decide which class to instantiate. Factory Method lets a class defer instantiation to subclasses.
References
Factory Method
https://baymax55.github.io/2022/09/13/设计模式/FactoryMethod/