1、構造方法定義:與類同名沒有返回值的方法稱為構造方法; public class test1 {private String name;private int age;public test1(){} } 上面的test1()是預設構造 ...
確定! 回上一頁