What is the use of function extension ?
Answer / Chhaya Goswami
Function extension in Kotlin allows for adding new functionality to existing functions without modifying their original implementation. This is achieved by defining a new function with the same name and receiver type as the target function, making it look like an extension of the original function.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are different types of constructors in kotlin?
Is there any Ternary Conditional Operator in Kotlin like in Java?
How to compare two strings in Kotlin?
what operator is used to handle null exceptions in Kotlin?
Why do we need write open before class name in Kotlin while working on inheritance?
List down some kotlin data class built in methods?
What is Data Class in Kotlin?
Can we create uninitialized array in kotlin?
Can you execute Kotlin code without JVM?
List the number of constructors available in Kotlin?
In Kotlin can interface have implemented method?
Is kotlin strongly typed?