题目内容
Sub类的main方法执行结果为()。classBase{publicvoidshow(inti){System.out.print("Valueis"+i);}}classSubextendsBase{publicvoidshow(intj){System.out.print("Itis"+j);}publicvoidshow(Strings){System.out.print("Iwaspassed"+s);}}publicclassTest{publicstaticvoidmain(Stringargs[]){Basebl=newBase();Baseb2=newSub();bl.show(5);b2.show(6);}}
查看答案
搜索结果不匹配?点我反馈