手机扫码访问

导航
您当前的位置:首页 > 高教类 > 工学类
问题:

高效找答案就上答案窝。欢迎访问daanwo.com
[单选题]关于下面的程序,编译和运行后输出结果是()pTl答案窝(daanwo.com)-大学作业答案分享平台
class Base{pTl答案窝(daanwo.com)-大学作业答案分享平台
int m=2;pTl答案窝(daanwo.com)-大学作业答案分享平台
public int getM(){return m;}pTl答案窝(daanwo.com)-大学作业答案分享平台
}pTl答案窝(daanwo.com)-大学作业答案分享平台
public class TestDemo extends Base{pTl答案窝(daanwo.com)-大学作业答案分享平台
int m=1;pTl答案窝(daanwo.com)-大学作业答案分享平台
public int getM(){return m+super.m;}pTl答案窝(daanwo.com)-大学作业答案分享平台
public static void main(String args[]){pTl答案窝(daanwo.com)-大学作业答案分享平台
TestDemo t = new TestDemo();pTl答案窝(daanwo.com)-大学作业答案分享平台
System.out.println(t.m+"#"+t.getM());pTl答案窝(daanwo.com)-大学作业答案分享平台
}pTl答案窝(daanwo.com)-大学作业答案分享平台
}pTl答案窝(daanwo.com)-大学作业答案分享平台
A1#3pTl答案窝(daanwo.com)-大学作业答案分享平台
B2#3pTl答案窝(daanwo.com)-大学作业答案分享平台
C1#2pTl答案窝(daanwo.com)-大学作业答案分享平台
D2#4
高效找答案就上答案窝。欢迎访问daanwo.com
答案解析:

您可能感兴趣的问题
相关问题
关于我们 | 用户指南 | 版权声明 | 给我留言 | 联系我们 | 积分商城 | 答案求助 | 网站地图
Copyright © 2020 www.daanwo.com All Rights Reserved