皮皮学,免费搜题
登录
logo - 刷刷题
搜题
【单选题】
下列代码,使用的设计模式是 interface Iterator { public boolean hasNext(); public Object next(); } interface Container { public Iterator getIterator(); } class NameRepository implements Container { public String names[] = {"Robert" , "John" }; @Override public Iterator getIterator() { return new NameIterator(); } private class NameIterator implements Iterator { int index; @Override public boolean hasNext() { if(index < names.length){ return true; } return false; } @Override public Object next() { if(this.hasNext()){ return names[index++]; } return null; } } }
A.
工厂模式
B.
适配器模式
C.
桥接模式
D.
迭代器模式
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【单选题】下面哪一个不是世界著名的四大栽培食用菌()
A.
香菇
B.
茶树菇
C.
草菇
D.
蘑菇
【判断题】涂料的调配可以先配后用。
A.
正确
B.
错误
【简答题】Step 8: Take the initiate to settle the _____ right away. Others will _______ your initiative.
【单选题】“简易直接,明白四达”是()对王阳明学说的评价。
A.
王国维
B.
钱穆
C.
胡适
D.
冯友兰
【简答题】acoustic creatures意思是
【简答题】We hope you will take the initiative and bridge the gap.(英译中)
【多选题】中山陵祭堂建有三道拱门,门额上刻有阳文篆字,这是孙中山先生从事革命活动最基本最概括的指导思想( )。
A.
民族
B.
民权
C.
民主
D.
民生
【单选题】在Word2010中,段落默认的对齐方式是
A.
分散对齐
B.
左对齐
C.
右对齐
D.
两端对齐
【单选题】通过细胞分裂活动可以使器官进行加粗生长的是:
A.
木栓形成层
B.
维管形成层
C.
顶端分生组织
D.
居间分生组织
【简答题】A.He finds it worthwhile to take the initiative in friends. B.He considers college is not a perfect place to make real close friends. C.He often meets difficulties of certain kind in fri...
相关题目:
参考解析:
知识点:
题目纠错 0
发布
创建自己的小题库 - 刷刷题