摘要: 1. 简单工厂模式: 就是在一个单例里面 通过传入的值创建不同的对象 class ModuleFactory { public static Module CreateModuel(ModuleType type) { switch (type) { case ModuleType.A: retur 阅读全文
posted @ 2024-06-03 20:31 Best_Hong 阅读(8) 评论(0) 推荐(0) 编辑