Multiple Inheritance in Python - how to use super & __init___ to initialize python Base class

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 ก.ย. 2024

ความคิดเห็น • 78

  • @varshinikanugonda5709
    @varshinikanugonda5709 6 หลายเดือนก่อน

    superb explanation of super(). I have been searching of how to use super() and after almost 1 hr I got it. Thanks a lot sir

  • @pc324
    @pc324 2 หลายเดือนก่อน +1

    Thank you sir, had my head breaking how to initailize attributes from different classes without knowing abt **kwargs....finally found the solution in your video

  • @TheDrewCrawford
    @TheDrewCrawford 2 ปีที่แล้ว +3

    Great explanation and great examples. I had been stuck for hours on this very issue but thanks to your video my code is now working. Thank you sir.

    • @Cognitive-Programmer
      @Cognitive-Programmer  2 ปีที่แล้ว

      Thanks you so much for taking time out to write the comment.. 🙏🙏🙏

  • @mciniell
    @mciniell ปีที่แล้ว +1

    Excellent video! I've been trying to understand multiple inheritance for a while now, this is hugely helpful!

  • @vigneshmurali1994
    @vigneshmurali1994 2 ปีที่แล้ว +1

    Great explanation. You clarified my doubt

  • @muhammadarqamwaheed186
    @muhammadarqamwaheed186 3 ปีที่แล้ว +1

    I searched whole the youtube but this video is the complete explanation of super()
    Thank You Sir!

  • @Aria-Code
    @Aria-Code 8 หลายเดือนก่อน

    Absolutely great video and covering all possible situations
    THANK YOU

  • @LadyPlatinaBerlitz
    @LadyPlatinaBerlitz 2 ปีที่แล้ว +1

    Thank you! The last part about parameters and **kwargs are exactly what I needed clarification on.

  • @BilalKhan-rc5nc
    @BilalKhan-rc5nc 3 ปีที่แล้ว +2

    Step by step explanation very nice. Carry on sir. Video is very helpful.

    • @Cognitive-Programmer
      @Cognitive-Programmer  3 ปีที่แล้ว

      Thanks for watching my video and thanks for your comment 🙏🙏🙏

  • @RamKumar-qm9ch
    @RamKumar-qm9ch 3 ปีที่แล้ว +1

    Superb Explanation about super(). Best video for knowing super( ) handling in python. Thank a lot

  • @christian2426
    @christian2426 ปีที่แล้ว

    Excellent, great examples! Thank you

  • @harideepgaddam3355
    @harideepgaddam3355 3 ปีที่แล้ว +1

    Nice 😊👍

  • @elle948
    @elle948 2 ปีที่แล้ว +1

    thank you sir you are a legend!

  • @deepaksharma-xr1ih
    @deepaksharma-xr1ih 3 ปีที่แล้ว +1

    One of the best till now

  • @Rajgupta-fh3yt
    @Rajgupta-fh3yt 3 ปีที่แล้ว +1

    super video. exactly what i was looking for. THANKS ALOT BRO.

    • @Cognitive-Programmer
      @Cognitive-Programmer  3 ปีที่แล้ว

      Thanks for watching my video and thanks for your comment 🙏🙏🙏

  • @techcode_man
    @techcode_man 2 ปีที่แล้ว

    Thank you. Very well explained!!! 🙏👍👍

  • @aju9320
    @aju9320 2 ปีที่แล้ว +1

    Thank you very much 👍👍

  • @roxykvarman8773
    @roxykvarman8773 3 ปีที่แล้ว +1

    Thanks a lot! Easy to understand explanation of rather difficult topic. And very thoughtful presentation. Definitely subscribed!

  • @jayaramamt8136
    @jayaramamt8136 ปีที่แล้ว

    Great explanation🙏🙏🙏

  • @AlvaroALorite
    @AlvaroALorite 3 ปีที่แล้ว +1

    Thank you sir! You clarified a lot of concepts that I was finding hard understanding 🙏😊

    • @Cognitive-Programmer
      @Cognitive-Programmer  3 ปีที่แล้ว +1

      Thanks for watching my video and thanks for your comment 🙏🙏🙏

  • @heychima
    @heychima 2 ปีที่แล้ว +1

    genius, thanks so much

  • @wesleyrodrigues2329
    @wesleyrodrigues2329 3 ปีที่แล้ว +2

    Thank you very much, helped me a lot!

  • @rohitnegi5566
    @rohitnegi5566 3 ปีที่แล้ว +2

    good content, this channel should deserve more subscribers

  • @luattranbinh9474
    @luattranbinh9474 3 ปีที่แล้ว

    Awsome, You saved me. Thanks !!!

    • @Cognitive-Programmer
      @Cognitive-Programmer  3 ปีที่แล้ว

      Thanks for your comment.. I am glad to know that my video helped you in your learning journey 🙏🙏🙏

  • @sayandey1478
    @sayandey1478 3 ปีที่แล้ว +2

    You saved me
    Thanks a lot

  • @tricialobo9233
    @tricialobo9233 3 ปีที่แล้ว +1

    Thanks for saving my debugging night:)

    • @Cognitive-Programmer
      @Cognitive-Programmer  3 ปีที่แล้ว

      Thanks a lot for your comment.. I am glad to know that it helped..Thanks again 🙏🙏🙏

  • @SuccessSparks04
    @SuccessSparks04 2 ปีที่แล้ว

    great great great man

  • @shuxiangzhang2567
    @shuxiangzhang2567 3 ปีที่แล้ว +2

    Great video, thanks!

  • @kartiksrikumar6069
    @kartiksrikumar6069 3 ปีที่แล้ว +2

    nice explanation!

  • @dumidupramith3881
    @dumidupramith3881 2 ปีที่แล้ว +1

    thank you're super

  • @mikramuddin
    @mikramuddin 2 ปีที่แล้ว +1

    Most amazing demo. I hope you have many more videos. 5-star and subscribing for more content from you. Thank you

  • @akdvlog
    @akdvlog ปีที่แล้ว

    This video is very useful for me and it clears my doute.
    plz share the code link.

    • @Cognitive-Programmer
      @Cognitive-Programmer  ปีที่แล้ว

      Thank you so much, unfortunately my code is lost due to a system crash.. but will certainly create one at some later point of time.. thanks again 🙏

  • @judeleon8485
    @judeleon8485 3 ปีที่แล้ว +1

    Great tutorial with clear explanation! where can we find the code for the video?

    • @Cognitive-Programmer
      @Cognitive-Programmer  3 ปีที่แล้ว

      Hello
      Thanks for your kind word. I haven’t uploaded the code anywhere but if it is helpful I may upload the same in my GitHub page.. though it will take some time
      Thanks 🙏 🙏🙏

  • @BukhariShah-br1vq
    @BukhariShah-br1vq 3 ปีที่แล้ว

    thanks again i have one more question plz answer
    ​ @Code Sports Why classname.base.commit() is used in python with classes?plz tell

    • @Cognitive-Programmer
      @Cognitive-Programmer  3 ปีที่แล้ว

      Hello
      Thanks for your comment. I believe you're talking about ___init___ and not the commit right?
      If that's the case it is done to make sure that python base classes are initialized. Unlike other languages like JAVA and C++, it will not happen automatically in python and we need to manually initialize it
      Hope it helps.. thanks

    • @BukhariShah-br1vq
      @BukhariShah-br1vq 3 ปีที่แล้ว

      @@Cognitive-Programmer thank you very much

  • @ytronik
    @ytronik 6 หลายเดือนก่อน

    **kwargs are necessary only for multiple injections, right?

    • @Cognitive-Programmer
      @Cognitive-Programmer  6 หลายเดือนก่อน

      **kwargs is a parameters consist of key-value pairs. Usage depends upon the scenario

  • @anushanandamuri1184
    @anushanandamuri1184 3 ปีที่แล้ว

    if first class and second class are inherited from same base and having super() then how will pass parameters

  • @yt-1161
    @yt-1161 2 ปีที่แล้ว

    What about super().__new__() ?

  • @AdolfHitler-di5cr
    @AdolfHitler-di5cr 3 ปีที่แล้ว

    Ujing , Ujing ha ha

    • @Cognitive-Programmer
      @Cognitive-Programmer  3 ปีที่แล้ว

      Thanks for your comment and sorry about that 🙏🙏🙏

  • @BukhariShah-br1vq
    @BukhariShah-br1vq 3 ปีที่แล้ว +1

    super video. exactly what i was looking for. THANKS ALOT BRO.

    • @Cognitive-Programmer
      @Cognitive-Programmer  3 ปีที่แล้ว

      Thanks a lot for your comment 🙏🙏

    • @BukhariShah-br1vq
      @BukhariShah-br1vq 3 ปีที่แล้ว

      @@Cognitive-Programmer ​ Why classname.base.commit() is used in python with class ? plz tell