Answers for "kotlin static method"

3

kotlin static method

class Foo {
  companion object {
     fun a() : Int = 1
  }
}

Foo.a()
Posted by: Guest on September-28-2020

Browse Popular Code Answers by Language