写出如下程序的输出结果 class A{ public int getNumber(int a) { return a + 1; } } class B extends A { public int getNumber (int a) { return a + 2; } public static void main (String args[]){ A a = new B(); System.out.println(a.getNumber(0)); } }
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【单选题】So, Sally, I sense there might be some issues with work that you are not 100 percent satisfied with. And I just want to sit down with you informally and talk tings out. What does the man really want t...
A.
He wants to fire the employee.
B.
He wants to talk with the employee to know the problem.
【简答题】Two men were sitting together in a plane. They were on a long journey. One of the men was a businessman. The other was a farmer. They sat without talking for a while, then the farmer said, “Let’s do s...