史上最明白-设计模式-抽象工厂模式精讲

设计模式精讲 抽象工厂模式 模式定义: 提供一个创建一系列相关或互相依赖对象的接口,而无需指定它们具体的类 //建立连接 interface IConnection{ void connection(); } //声明sql interface ICommand{ void command(); } //驱动配置 interface IDBCompant{ IConnect
相关文章
相关标签/搜索