Kotlin Generics in 20 minutes

Поделиться
HTML-код
  • Опубликовано: 13 янв 2025

Комментарии • 12

  • @BilalBerek-tl3tq
    @BilalBerek-tl3tq Год назад

    you deserve thousands of subscribers very high quality tutorials ma'am

  • @awaqar2
    @awaqar2 2 года назад

    very nice and easy basic explaination

  • @shubhammogarkar6414
    @shubhammogarkar6414 2 года назад

    Very Good explanation, Mam 🙏

  • @AnkitKumar-dc3jt
    @AnkitKumar-dc3jt 2 года назад

    Nice explained but check function is bit confusing..Even confused you..😊 We can use it when we need to throw any exceptions right ?
    Suggestion to you just as a follower edit the video before you upload so that viewers get confidence when they see your video..
    But at the end very well explained and learnt the basics of defining a class with properties of generic type..👍👍

    • @superlazycoder1984
      @superlazycoder1984  2 года назад +1

      Thank you so much Ankit, appreciate all the feedback. Yes will be trying to do better and edit the video to make it more clear. Bu thank you again for feedback

  • @IUfidi
    @IUfidi 3 года назад

    Hello, do u hv more vids?

    • @superlazycoder1984
      @superlazycoder1984  3 года назад

      Sure. You can find my Kotlin basic series on my channel page. Will be releasing few more of those in coming week

  • @tarun3105
    @tarun3105 Год назад

    The check condition you explained is wrong , it was partially correct when it was type. Os ! = "Android", this condition stated false because type is Android but with an address so basically you were comparing reference type with a string " Android"(I.e generics. Android@3941a79c ! = "android")

    • @superlazycoder1984
      @superlazycoder1984  Год назад

      Hi Tarun, in case of strings the same string is using the same address so even the == works in that.This is why it works with the isAndroidPhone() and it failed with IOS() . If we want to compare the references we can use ===.
      However I agree equals is a more cleaner way but it will return the same answer in case of strings