Kotlin 的类必须有一个主构造函数,可以有多个次要构造函数. 主构造函数. 1. 写法一(主构造函数初始化代码在init块中). class User constructor(name: ...
確定! 回上一頁