Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


what is the use of extension functions in Kotlin?



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

Post New Answer

More Kotlin Interview Questions

Which type of programming does kotlin support?

1 Answers  


Does Kotlin support Checked Exceptions like in Java?

1 Answers  


How do you differentiate var and val in Kotin?

1 Answers  


What is the type of arguments inside a constructor? Why do you think they are val unless explicitly set to var?

1 Answers  


How to handle null exceptions in Kotlin programming?

1 Answers  


What kinds of programming does Kotlin support ?

1 Answers  


Give a syntax for declaring a variable as volatile in Kotlin?

1 Answers  


Define step() function in Kotlin?

1 Answers  


What is the extension of Kotlin file?

1 Answers  


Who created Kotlin programming language and when?

1 Answers  


What is companion object?

1 Answers  


Why you should shift from Java to kotlin?

1 Answers  


Categories