Compiler會代為呼叫無參數「建構方法」. 範例:呼叫到Produt(){ }. 使用自己class的屬性要運用this.name. 使用繼承class的屬性要運用super.name. 建構子內的第一行規定 ...
確定! 回上一頁