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 the features that kotlin support and java doesn’t?
What are the disadvantages of kotlin?
How to write string template expression?
Describe the use of extension function?
What is Range in Kotlin?
What is Ranges operator in Kotlin?
How to declare variables in Kotlin?
What is the difference between const vs val?
What type of programming does Kotlin support?
What is the purpose of creating kotlin?
Explain Higher-Order Functions?
What is init block in Kotlin?