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 |
How many ways to create array in kotlin?
Does Kotlin support Checked Exceptions like in Java?
How many constructors are available in Kotlin?
Does Kotlin provide any additional functionalities for standard Java packages or standard Java classes?
List some of the key modifiers in kotlin?
What are the types of strings available in kotlin?
How to declare an initialization block in kotlin class?
Does Kotlin support primitive datatypes as like in Java?
Describe the use of extension function?
How many types of constructors are there ? What are they ?
Can you migrate the code from java to kotlin?
Name the extension methods Kotlin provides to java.io.File?