不管是物件宣告,還是下面會說到的另外兩種用法,都是遵循這一語義的。 ... class User(val male: Int){ companion object { val MALE = 0 fun ...
確定! 回上一頁