Variance in Java Generics

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

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

  • @medievalogic
    @medievalogic 5 месяцев назад

    I finally understand covariance and contravariance. Thank you so much!

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

    It is actually a very good video for a beginner, like me, to understand the concept of variance in object oriented programming. I didn't find any resource yet with such a good explanation.

  • @af_125
    @af_125 5 лет назад +3

    This is an excellent video on this topic. The accent is a bonus.

  • @jam4l
    @jam4l Год назад +1

    I am having a hard time understanding generic variances in Kotlin, this is an amazing explanation, Thank you.

  • @Bob-lf6ic
    @Bob-lf6ic 6 лет назад +9

    holy shit you sir explained this better than anyone i know could have, that was amazing!

    • @Tech_Publica
      @Tech_Publica  6 лет назад +2

      Thanks, I am very happy to know that it was useful and reasonably well done! :)

  • @expertreviews1112
    @expertreviews1112 5 лет назад +6

    Goodness me, you explained it better than anything I've seen on this. I've seen variance topics in C# as well but nothing comes close. This makes it crystal clear to me. A huge like and subscribe. Thanks....

  • @crptc5707
    @crptc5707 6 лет назад +2

    Code example is extremely helpful! Much better than all those dry articles I read on this topic. Subscribed.

    • @Tech_Publica
      @Tech_Publica  6 лет назад

      thanks! and if guys have any suggestions on topics you would like to see, let me know!

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

    Mille grazie for this superb explanation!

  • @asdrubalasencio
    @asdrubalasencio 4 года назад +1

    Excellent Explication!. It's wonderful to find this kind of Video.

  • @oxitroy
    @oxitroy 4 года назад

    So well explained. Fifth video i see on the subject and you made it clicked.
    accent, jokes, apparte, explanations perfect :)

  • @shirshendudebroy2097
    @shirshendudebroy2097 4 года назад

    Awesome... Just awesome...

  • @abulkasimlaskar
    @abulkasimlaskar 4 года назад +1

    To the point and very clear explation.
    Thank you very much sir.

  • @arun26cs
    @arun26cs 4 года назад +1

    your explaination is layman understandable. shown a impossibility and took us into the possibility of use of covariants... thanks

  • @rogermanea2140
    @rogermanea2140 5 лет назад +1

    Good explications and very pleasant to watch!

  • @aleph.5811
    @aleph.5811 5 лет назад +3

    just got hit with a ton of concise knowledge

  • @ShrawankrSharma
    @ShrawankrSharma 6 лет назад +1

    Perfect explanation -- Thanks

  • @shailesh2raj
    @shailesh2raj 4 года назад

    Very clear explanation of very complex topic. Thank you for producing this

  • @svenschroder9781
    @svenschroder9781 4 года назад +1

    this was very helpful! Thanks a lot

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

    Ciao Riccardo! la explicación excelente, pero el acento italiano... meraviglioso!!! los oídos latinos agradecidos! "me gusta" , "suscripción" y "difusión"

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

      Soy brasileño y pensé que el es de India o algo así

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

      gracias, mi proximo reto seria tratar de hacer algunos videos en español :)

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

      Me pergunto o que você pensaria do meu português :P
      Já estive no Brasil duas vezes pouco antes da pandemia... País incrível!

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

    Great explanation. I was stumbled upon Kotlin docs explaining variance briefly but couldn't understand it there.

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

    Great 👌

  • @lisafox9026
    @lisafox9026 5 лет назад +2

    so geate explained !!!! thank you

  • @jaysamba8839
    @jaysamba8839 5 лет назад +1

    Very good

  • @famboyantjoe
    @famboyantjoe 7 лет назад +1

    great explanation -- thanks

  • @haaramarsch8277
    @haaramarsch8277 6 лет назад

    Ty, very easy to follow and understand. Finally got it too.

    • @Tech_Publica
      @Tech_Publica  6 лет назад +1

      thanks, it means a lot to me to know that I have helped someone to understand something !

  • @okeuwechue9238
    @okeuwechue9238 6 лет назад

    Nice vid! Clear and concise !

  • @abderrahimkhaled2807
    @abderrahimkhaled2807 7 лет назад +1

    good and deep explaintation thanks

  • @David-zv5kw
    @David-zv5kw 3 года назад

    thank you sir

  • @_slier
    @_slier 6 лет назад +2

    May i know what's the purpose of contravariance? I know it reverse of subtype relationship.but i cant find any scenario that i might use contravariance

  • @ThingsHybrid
    @ThingsHybrid 6 лет назад

    why

    • @Tech_Publica
      @Tech_Publica  6 лет назад +1

      you can pass List to a function expecting a List

    • @codingCouncil
      @codingCouncil 5 лет назад

      Because at runtime , what would happen if we have actually passed in a List to the function?. A List should not be able to add a Feline in it. A List can take in a Tiger and A Feline. But a List can only take a tiger.
      You can see that the Tiger is a valid data type is the only certain type that can be added to the list

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

    List