Java編程思想第四版 *第五章 我的練習

練習3:(1)建立一個帶默認構造器(即無參構造器)的類,在構造器中打印一條消息。爲這個類建立一個對象。P116 public class Test{ public Test(){ System.out.println("Hello Word"); } public static void main(String[] args) { new Test(); } /**
相關文章
相關標籤/搜索