what is the use of extension functions in Kotlin?
Answer / Pitamber Arya
Extension functions allow you to add new functionality to existing classes without modifying the original source code. They are defined outside the class they extend and can be used with a dot notation, just like instance methods. This feature makes it possible to extend existing libraries or third-party libraries in Kotlin.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is nested class in Kotlin?
What is Range in Kotlin?
How do you export code from Java to Kotlin?
Can we create uninitialized array in kotlin?
Define Lambda Function in Kotlin?
What is !in operator in Kotlin?
What type of programming does Kotlin support?
Why is kotlin preferred over java?
What are the advantages and disadvantages of Kotlin?
How to declare a variable in kotlin?
What is Data Class in Kotlin?
How to write multiline string in kotlin?