奥鹏作业答案 - 分忧网!奥鹏作业答案,奥鹏在线作业答案,奥鹏作业答案及毕业论文分忧

奥鹏作业答案,奥鹏在线作业答案,奥鹏在线考核_分忧网

当前位置: 主页 > 在线考核 >

class A

时间:2021-05-28 09:45来源:未知 作者:admin 点击:
(单选题)18: class A {public int getNumber(int a){return a+1;}} class B extends A {public int getNumber(int a, char c){return a+2;} public static void main(String[] args) {B b=new B();System.out.println(b.getNumber(0));} } what is the r
(单选题)18: class A {public int getNumber(int a){return a+1;}} class B extends A {public int getNumber(int a, char c){return a+2;} public static void main(String[] args) {B b=new B();System.out.println(b.getNumber(0));} } what is the result?
A: compilation succeeds and 1 is printed
B: compilation succeeds and 2 is printed
C: compilation succeeds and 3 is printed
D: An error at this program cause compilation to fail
(责任编辑:admin)要这答案加QQ:800020900 或加微信:vq800020900 获取
顶一下
(0)
0%
踩一下
(0)
0%
------分隔线----------------------------
猜您喜欢

提示信息×