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

Define Kotlin Programming Language?

1 Answers  


What is kotlin’s null safety?

1 Answers  


Does Kotlin support primitive Datatypes?

1 Answers  


What is the purpose of creating kotlin?

1 Answers  


Mention few features that Kotlin provides but not java ?

1 Answers  


Give an example of high order functions?

1 Answers  


Which is the default modifier for a method, variable, class?

1 Answers  


How to write multiline string in kotlin?

1 Answers  


Is it possible to migrate the code from Java to Kotlin?

1 Answers  


Does Kotlin allow macros?

1 Answers  


List the Basic data types of Kotlin?

1 Answers  


Why is kotlin preferred over java?

1 Answers  


Categories