摘要: 工厂模式和简单工厂有什么区别。废话不多说,对比第一篇例子应该很清楚能看出来。优点: 工厂模式弥补了简单工厂模式中违背开放-封闭原则,又保持了封装对象创建过程的优点。using System;using System.Collections.Generic;using System.Linq;usin... 阅读全文
posted @ 2014-07-22 23:34 Mountains 阅读(129) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace DesignModel{ public class ... 阅读全文
posted @ 2014-07-22 22:44 Mountains 阅读(180) 评论(0) 推荐(0) 编辑