您当前的位置: 首页 > 

星拱北辰

暂无认证

  • 0浏览

    0关注

    1205博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

【面向对象】面向对象程序设计测试题12-设计模式测试题

星拱北辰 发布时间:2019-11-29 17:04:59 ,浏览量:0

Test12:设计模式测试题

问题 1 The constructor of a class that adheres to the Singleton design pattern must have _____ visibility. A. public B. protected C. private D. package 答案: C

问题 2 下面哪一个模式与策略模式是一类的? A.Factory Method B.Adapter C.Iterator D.Decorator 答案: C

问题 3 What is design pattern? A.describe practical solutions to common design problems that occur repeatedly in software development. B.A description of the solution that includes the class structures that solve the problem C.A description of the problem that the pattern addresses D.A name that identifies the pattern 答案: A

问题 4 The Strategy design pattern is likely to be useful when implementing which of the following?

I. An application that offers several alternate sorting algorithms II. A simple class t

关注
打赏
1660750074
查看更多评论
立即登录/注册

微信扫码登录

0.0432s