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(); } }
今日问题:
请问主程序运行结果是什么?(点击以下“【Java每日一题】20161117”查看20161116问题解析)
题目原发布于公众号、简书:【Java每日一题】20161117,【Java每日一题】20161117
时间: 2024-09-30 11:39:41