package Oct2016; public class Ques1013{ public static void main(String[] args){ new Obj(); } } class Obj{ String name; Other other = new Other(); public Obj(){ this("Object"); System.out.println("無參構造函數"); } public Obj(String name){ System.out.println("有參構造函數"); } } class Other{ public Other(){ System.out.println("Other的構造函數"); } }
今日問題:java
請問主程序輸出結果是什麼?(問題解析將在每日一題20161014公佈)c#
題目原發佈於公衆號、簡書:Java每日一題20161013,Java每日一題20161013函數
每日一題最新將在公衆號發佈,歡迎訂閱,交流進步this