20161116問(wèn)題解析請(qǐng)點(diǎn)擊今日問(wèn)題下方的“【Java每日一題】20161117”查看(問(wèn)題解析在公眾號(hào)首發(fā),公眾號(hào)ID:weknow619)
package Nov2016;
public class Ques1117 {
public static void main(String[] args) {
Sub sub = new Sub();
sub.doThing();
}
}
class Parent{
Parent(){
new Other();
}
}
class Sub extends Parent{
public void doThing(){
System.out.println("Sub doThing浑测。拇惋。震束。");
}
}
class Other{
public Other(){
new Sub();
}
}
今日問(wèn)題:
請(qǐng)問(wèn)主程序運(yùn)行結(jié)果是什么?(點(diǎn)擊以下“【Java每日一題】20161117”查看20161116問(wèn)題解析)