1. Define : method inside internal object in any .kt file
internal object HelloWorld { fun sayhelloWorld() = println("Hello World") } 2. Use :
HelloWorld.sayhelloWorld() 3. Output:
"Hello World" 1. Define : method inside internal object in any .kt file
internal object HelloWorld { fun sayhelloWorld() = println("Hello World") } 2. Use :
HelloWorld.sayhelloWorld() 3. Output:
"Hello World"