class User constructor(name: String) { // ... } 如果主要建構式沒有任何注釋(annotations) 或存取修飾字(visibility modifiers),則可以省略關鍵字 ...
確定! 回上一頁