设计模式描述了一个出现在特定设计语境中的设计再现问题,并为它的解决方案提供了一个经过充分验证的通用方案,不同的设计模式关注解决不同的问题。例如,抽象工厂模式提供一个接口,可以创建一系列相关或相互依赖的对象,而无需指定它们具体的类,它是一种( )模式;( )模式将类的抽象部分和它的实现部分分离出来,使它们可以独立变化,它属于( )模式;(请作答此空)模式将一个请求封装为一个对象,从而可用不同的请求对客户进行参数化,将请求排队或记录请求日志,支持可撤销的操作。
2023-09-01
A.Command
B.Facade
C.Memento
D.Visitor
参考答案:A
B.Facade
C.Memento
D.Visitor
参考答案:A
设计模式包括:创建型、结构型、行为型三大类别。抽象工厂模式属于创建型设计模式。桥接模式属于结构型设计模式。
![]( //img1.runjiapp.com/duoteimg/tiku/images/pc/questionBank/main-list-title-icon.png)
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_94.jpg)
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_45.jpg)
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_88.jpg)
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_27.jpg)
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_20.jpg)
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_91.jpg)
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_26.jpg)
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_75.jpg)
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_22.jpg)
热门标签