Kotlin has no any static keyword. You used that for java
class AppHelper {
public static int getAge() {
return 30;
}
}
and For Kotlin
class AppHelper {
companion object {
fun getAge() : Int = 30
}
}
Call for Java
AppHelper.getAge();
Call for Kotlin
AppHelper.Companion.getAge();
I think its working perfectly.