把以上資料從private改為protected. //protected可以供同package跟不同package但有繼承關係的子類別使用. public String getName() {. return name;. }.
確定! 回上一頁