Question : static in kotlin
Answered by : hieu-luu-ndgjx1a4p2ux
class Foo { companion object { fun a() : Int = 1 }
}
Source : https://stackoverflow.com/questions/40352684/what-is-the-equivalent-of-java-static-methods-in-kotlin | Last Update : Fri, 15 Jul 22