2017年3月16日
摘要: 源地址:http://www.cnblogs.com/SkySoot/archive/2012/04/05/2433639.html 阅读全文
posted @ 2017-03-16 16:01 海子呢 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 源地址:https://zhidao.baidu.com/question/1174413218458798139.html 阅读全文
posted @ 2017-03-16 15:18 海子呢 阅读(333) 评论(0) 推荐(0) 编辑
摘要: 1、比如,主要用于对扩展性有要求的功能。 以简单工厂为例:接口Fun有三个实现 class FunA FunB FunC工厂 class Fac { public static Fun getFun(string name){ if(name == "A") {return new FunA();} 阅读全文
posted @ 2017-03-16 14:29 海子呢 阅读(1302) 评论(0) 推荐(0) 编辑