<Alternative way for kotlin static methods> Im kin...
# stackoverflow
u
Alternative way for kotlin static methods Im kinda new to Kotlin and I was wondering how I could make a static method. I have this code: class Test() { var giorgor: String = "jiorgor" fun foo() = println(giorgor) } I want to access foo from somewhere else like this fun main() { Test.foo() // WantedOutput: jiorgor }