皮皮学,免费搜题
登录
搜题
【简答题】
请说出E类中【代码1】和【代码2】的输出结果。 interface Com { int add(int a,int b); } abstract class A { abstract int add(int a,int b); } class B extends A implements Com{ public int add(int a,int b){ return a+b; } } public class E { public static void main(String args[]){ B b = new B(); Com com = b; System.out.println(com.add(12,6));//【代码1】 A a = b; System.out.println(a.add(10,5)); //【代码2】 } }
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
.
..
皮皮学刷刷变学霸
举一反三
【判断题】酸式滴定管只能用来装酸。
A.
正确
B.
错误
【多选题】1-4下列关于公司建立财务目标体系目的的表述中,正确的有( )。
A.
建立技术上的领导地位
B.
获得良好的现金流
C.
提高收益增长率
D.
提高公司在客户中的声誉
【单选题】低流量吸氧病人,氧浓度应该是
A.
15L
B.
18L
C.
29L
D.
40L
【判断题】机动车向右转弯遇有同车道前车正在等候放行信号时,可以绕过前车借道通行。
A.
正确
B.
错误
【单选题】在交叉路口,机动车向右转弯遇有同车道前车正在等候放行信号时,机动车( )。
A.
借用非机动车道向右转弯
B.
借用其他机动车道向右转弯
C.
须依次停车等候
D.
可以优先通行
【单选题】我国先秦时期,主张 “ 有教无类 ” ,倡导 “ 因材施教 ” 的教育家是
A.
孟子
B.
孔子
C.
荀子
D.
庄子
【多选题】What are you supposed to say about the three references in the résumé?
A.
Their workplaces.
B.
Their home addresses.
C.
Their titles.
D.
Their names.
【单选题】— What would you say about the new book? — _____. [     ]
A.
Nothing about it
B.
Nothing in particular
C.
Not at all
D.
Nothing at all
【判断题】酸式滴定管只能用来装酸。( )
A.
正确
B.
错误
【单选题】What would your classmates say about you?
A.
I don’t care about it.
B.
They would say that I am a dependable person.
相关题目: