class Person constructor(firstName: String) { /*……*/ }. 如果主构造函数没有任何注解或者可见性修饰符,可以省略这个constructor 关键字。
確定! 回上一頁