也是同樣的重複在兩個類別中。改良的寫法是使用super(m) 去呼叫定義在Exam 類別內的一個參數的建構子: class Exam { public int getMinutes ...
確定! 回上一頁