问题描述
78、请看下列程序,运行结果是classSuper{inti=10;Super(){print();i=20;}voidprint(){System.out.print(i);}}publicclassSubextendsSuper{intj=30;Sub(){print();j=40;}voidprint(){System.out.print(j);}publicstaticvoidmain(String[]args){System.out.print(newSub());}}
时间: 2024-09-15 15:21:52