You are here
Home > Posts tagged "Companion object"

Kotlin: Companion Object

Companion Object In this post we will discuss companion object in kotlin. Kotlin not support static methods and variable so we use companion object to make variable and methods static. The companion objects are declared inside a class using companion The function declared inside a companion object are called using