- 博客(1)
- 收藏
- 关注
原创 简单工厂模式
1.简单工厂模式(静态工厂模式) 工厂类: public class SimpleAnimalFactory { public static Animal getAnimalInstance(String type) throws InstantiationException, IllegalAccessException{ if ("dog".eq
2017-07-30 21:31:23 140
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人