第4题
下列程序运行结果是()。publicclassDemo{publicstaticvoidmain(String[]args){Objectobj=newFather(){publicvoidshow(){System、out、println(\"helloworld\");}};obj、show();}}classFather{publicvoidshow(){System、out、println(\"hellofather\");}}
A、hellofather
B、helloworld
C、无结果
D、程序编译报错
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!