
There is nothing called static in Kotlin.

call the members of the class with the help of class name in Kotlin? The answer is yes, but the approach is different. just call them with the help of class name.īut can we do the same i.e. Keyword to declare the members of the class and use them without making any object i.e. In some languages like Java and C#, we use calling callMe() method using object objĬlass and then with the help of that object, the

A typical Kotlin example of the same is:įun callMe() = println("You are calling me :)") In Kotlin or any other programming language like Java and C#, whenever we want to call the method or whenever we want to access the members of a class then we make the object of the class and with the help of that object, we access the members of the class.
