Fork me on GitHub
摘要: 简单工厂模式(Simple Factory) 设计模式使用的例子 https://github.com/LinkinStars/DesignPatternsAllExample 一、定义 定义一个工厂类,它可以根据参数的不同返回不同类的实例,被创建的实例通常都具有共同的父类。因为在简单工厂模式中用于 阅读全文
posted @ 2017-10-12 20:16 LinkinStar 阅读(538) 评论(0) 推荐(0) 编辑