Skip to content

Instantly share code, notes, and snippets.

@magdamiu
Created February 2, 2020 14:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save magdamiu/9637eca09562274cdbf58cfcd1937153 to your computer and use it in GitHub Desktop.
Save magdamiu/9637eca09562274cdbf58cfcd1937153 to your computer and use it in GitHub Desktop.
Companion object in Kotlin
class Person {
companion object {
fun callMe() = "Call"
}
}
// Person.callMe()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment