Kotlin Standard Delegates - Lazy, Observable and Vetoable

Поділитися
Вставка
  • Опубліковано 23 лип 2024
  • This is the final video about Kotlin Delegates. So far we have learned about Delegation Pattern, we also learned how it is super easy to make delegation in Kotlin as it supports it natively. And we also created some Delegates.
    In this video we will learn about the Delegates that are predefined in Kotlin Standard Library.
    0:00 Introduction
    0:44 Lazy Delegate
    4:12 Observable Delegate
    6:35 Vetoable Delegate
    If you are having difficulties navigating from one lesson to another, then click on this link and it will open the complete playlist of this Kotlin Object Oriented Programming. In this playlist all lessons are already arranged in chronological order.
    👉 bit.ly/3lMLtpj
    All the codes about this Kotlin Android Tutorial for Beginners are organized sequentially in this repository
    👉 bit.ly/2UoyiQf
    And if you need more support, then you can join the Simplified Coding’s Quora Space to post your questions.
    👉 www.quora.com/q/simplifiedcoding
    If you want to get in touch with me; you can find my contact details here:
    👉 www.simplifiedcoding.net/about/
    Finally, If you love my content please SHARE my courses to your friends. You can share this course to your Facebook, WhatsApp etc.
    For more contents related to Software Development visit my website.
    👉 www.simplifiedcoding.net
    You can SUPPORT me if you want
    👉 Patreon: / belalkhan
    👉 UPI (India Only): probelalkhan@okaxis
    👉 PayTM (India Only): +917549161079
    👉 PayPal: www.paypal.me/probelalkhan
    You can also check some of my other courses from these links
    👉 Android MVVM Tutorial: bit.ly/3iLfVzu
    👉 Android Game Development Tutorial: bit.ly/38JmltC
    👉 Retrofit Android Tutorial: bit.ly/2DEwAl1
    👉 Android RecyclerView Tutorial: bit.ly/2TqVjPz
    👉 Android Room Tutorial: bit.ly/2PfQHeN
    👉 Firebase Auth Tutorial: bit.ly/2WUGhEo
    👉 Android Notification Tutorial: bit.ly/2Sc6jQl
    👉 Building a Complete Wallpaper App: bit.ly/30UN8zV
    👉 Build Tic Tac Toe in Android: bit.ly/30goxW0
    ❤️❤️ Thank You All for the Love and Support ❤️❤️
    #KotlinOOP
    #OOPsConcept
    #LearnKotlin
  • Наука та технологія

КОМЕНТАРІ • 25

  • @SimplifiedCoding
    @SimplifiedCoding  3 роки тому +8

    At 4:52 I accidentally said that "to the constructor we will pass", but the observable is a function and not a class. So here we are passing the initial value to the function as a parameter. Sorry for this.

  • @jamadir
    @jamadir 2 роки тому

    thank you very much! super simply explained!

  • @GriNAME
    @GriNAME 2 роки тому

    Thank you a lot! Really cool lessons!

  • @shreyashchoudhary7413
    @shreyashchoudhary7413 3 роки тому

    Loved it!

  • @brucebane7401
    @brucebane7401 3 роки тому

    amazing tutorial !!!!

  • @mohamedfiyaz8356
    @mohamedfiyaz8356 3 роки тому +1

    Useful topics which used while day today coding. 👍

  • @theredd1703
    @theredd1703 Рік тому

    Thanks!!!

  • @ahmednabil5119
    @ahmednabil5119 3 роки тому

    Thanks alot.

  • @abhishekjha4290
    @abhishekjha4290 3 роки тому

    Great work.....

  • @ajeenadev6636
    @ajeenadev6636 2 роки тому

    Nice class

  • @77Bibo77
    @77Bibo77 2 роки тому

    That was really good! MTBA

  • @TheImaginativeSachin
    @TheImaginativeSachin Рік тому

    These are awesome do you videos explaining all about lamdas. It's hard to understand :(

  • @gibraanjafar1669
    @gibraanjafar1669 3 роки тому

    If incase anyone is using some other editor like VSCode, vim etc , do add the import => import kotlin.properties.Delegates.

  • @brucebane7401
    @brucebane7401 3 роки тому

    what is the datatype/classtype of heavy. dont we have to specify a classname when lazy loaded like
    val heavy:Classname by lazy ......

  • @akashviet007
    @akashviet007 3 роки тому

    we can observe the changes by defining normal setter also, then what is the use of Delegate.observable ??

    • @SimplifiedCoding
      @SimplifiedCoding  3 роки тому +2

      Functionality wise both are same but delegates may be better in cases where you are having the same functionality for multiple variables.
      With setters you need to write duplicate code
      but
      You can assign the deligate to a variable and then use the same variable as the delegates. This will reduce your code repetition.

    • @akashviet007
      @akashviet007 3 роки тому

      @@SimplifiedCoding Okay 👍

  • @manikandan97
    @manikandan97 3 роки тому +1

    Hai bro, why video quality is only 320p what happened?

    • @SimplifiedCoding
      @SimplifiedCoding  3 роки тому +2

      UA-cam takes some time to process HD videos, after some time it will become Full HD.

    • @Arunkumar-xf1hd
      @Arunkumar-xf1hd 3 роки тому

      @@SimplifiedCoding i seen in 1440p60 thankyou so much sir for all your helpfull videos

  • @arjundixit5913
    @arjundixit5913 3 роки тому

    vetoable vs setter? set(value) { field = value } also does the same thing i guess

    • @vathsan3906
      @vathsan3906 2 роки тому

      I guess vetoable is like set(value) { if(condition) field = value }

  • @erickfiorek8455
    @erickfiorek8455 3 роки тому

    Woow woow 😍💋 💝💖❤️