Static In Kotlin

[Solved] Static In Kotlin | Kotlin - Code Explorer | yomemimo.com
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

Answers related to static in kotlin

Code Explorer Popular Question For Kotlin