For ex: class Test{ companion object{ fun isCheck(a:Int):Boolean{ if(a==0) true else false } } }. 你可以调用这个函数作为. Test.Companion.isCheck(2).
確定! 回上一頁