Define an interface for creating an object, but let subclasses decide which class to instantiate. Factory method lets a class defer instantiation to subclasses.
英
美
- 定义一个用于创建对象的接口,让子类决定实例化哪一个类。