下列关于静态工厂与工厂方法表述错误的是()。
2023-05-31
下列关于静态工厂与工厂方法表述错误的是()。
A.静态工厂对具体产品的创建类别和创建时机的判断是混合在一起的,这点在工厂方法中解决了
B.不能形成静态工厂的继承结构
C.两者都满足开闭原则:静态工厂以if…else方式创建对象,增加需求的时候会修改源代码
D.在工厂方法模式中,对存在继承等级结构的产品树,产品的创建是通过相应等级结构的工厂创建的
参考答案:
A
![]( //img1.runjiapp.com/duoteimg/tiku/images/pc/questionBank/main-list-title-icon.png)
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_76.jpg)
2023-06-11
竞赛及其他题库
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_21.jpg)
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_92.jpg)
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_51.jpg)
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_34.jpg)
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_76.jpg)
2023-06-11
竞赛及其他题库
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_29.jpg)
2023-06-11
竞赛及其他题库
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_71.jpg)
公共机构应当厉行节约,杜绝浪费,带头使用(),提高能源利用效率。
2023-06-11
竞赛及其他题库
热门标签