Kotlin apply, let, with, run functions | Scoped Functions in Kotlin | Cheezycode #37

preview_player
Показать описание
In this tutorial, learn what are scoped functions and how to define them. You will learn how to use apply(), let(), with() and run() functions in Kotlin with examples. You will understand the benefit of apply and let in Kotlin. These are scoped functions that provide an easy way to access object properties and helps improve the code readability and reduces the lines of code.

This tutorial is part #37 of Kotlin Programming For Beginners Series. Learn Object Oriented Programming in Kotlin. Everything is explained in Hindi. Brief topics covered -

1. What are scoped functions?
2. What is apply() in Kotlin?
3. What is let and how this lambda function improves the code
4. let with nullable objects
5. Use of with() function
6. run() scope function example in Kotlin

Learn all this in Hindi (हिंदी में )

Kotlin Lambda Expression and Lambda Functions -

Kotlin Beginners Tutorial Series -

For more info - visit below link

We are social. Follow us at -
Рекомендации по теме
Комментарии
Автор

Thanks Sir
Very clear, detailed explanation 👌

sumithpattar
Автор

Bohat zada ache se scope functions ke bare men bitaya. Dhanevaad

jasolsodha
Автор

I don't understand why let is associated with null chek? Because in reality we can assing null check execution with let, run, apply and also...

moviefreak
Автор

Sir ji Thank you 🙏🙏 Your video is amazing and very helpful for me...

kishankadiya
Автор

Sir, I'm always waiting for your new Kotlin video.
Would you please upload it once a day? So, I can improve my Kotlin skills quickly.

jayeshkanzariya
Автор

Bro in sab scoped functions main major difference kya hai? if someone ask this question in an interview, what would be the real-time example for all these scoped functions?

rohitsingh-ymns
Автор

bro u havent made a video on out keyword

ArjunVerma-lqcf
Автор

*Bro How you are not getting error while making Employee object ???, u did not passed any argument in the Employee constructor while making object*

heavenlife
Автор

what problem does with and run solve that apply and let are not. what I mean is why do we need with or run scoped function

BasantKumar-ilvx
Автор

Boass, scope to smash aa gya but differences clear ahi hue

samraatsinghchauhan
Автор

sir, you are doing a wonderful job. Can you please make videos on jetpack compose?

shahidkhalid