Skip to content

Latest commit

 

History

History

FactoryMethod

FactoryMethod(工厂方法)

目的

定义一个用于创建对象的接口,让子类决定实例化哪一个类。使一个类的实例化延迟到子类。

UML类图

avatar