Describe the use of extension function?
Answer / Suvendu Bikash Bhakta
Extension functions are a feature in Kotlin that allow you to add new functionality to existing classes without subclassing them. They can be used on any class, even if it is final or from a third-party library.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the difference between Val and var declaration?
what operator is used to handle null exceptions in Kotlin?
How many types of constructors are there ? What are they ?
How do you declare a variable as volatile in Kotlin ?
What are the modifiers that are available in kotlin?
What is the use of function extension ?
Can you migrate the code from java to kotlin?
What are different types of constructors in kotlin?
What are the features that kotlin support and java doesn’t?
How to make a class data class ?
Why to use kotlin?
What are the features available in kotlin but not in java?