Multiple Inheritance and Method Resolution Order in Python (Hindi)

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ม.ค. 2025

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

  • @sdc8591
    @sdc8591 4 ปีที่แล้ว +15

    Ye sare inheritance ke concepts aapne itne achchhe se samjhaye, aur examples itne sahi fit hain😀 Iske baad to kabhi life main nahi bhool sakte. Thank you so much 🙏🙏

  • @SirusDas
    @SirusDas 4 ปีที่แล้ว +11

    Yes... Voice is perfect for RJ as well as the accent with base. Crisp concept explanation. Thank You

  • @akshaysaxena481
    @akshaysaxena481 4 ปีที่แล้ว +3

    You are just amazing you deserve millions of subscribers 🔥🔥🔥🔥🔥🔥🔥🔥

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

    Best Explanation. Thanks #GeekyShows. Cleared all my doubts.....

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

    Ye muze lifetime yad rahega...sir, sirf apke wajase....dimag me chap gaya hai sara concept ❤️ thank you so much

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

    Bhai big fan .Thanks for making this series 🙏

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

    Superb explanation 😍

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

    Great boss 🙌🙌

  • @ruchikakumari8404
    @ruchikakumari8404 5 ปีที่แล้ว +7

    Wow! so sweet voice

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

    Well done 👍👍👍👍👌👌

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

    Wow best explanation of multiple inheritance

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

    Ek dil h wo tumhe de diya ❤️

  • @md.yeasin5214
    @md.yeasin5214 3 ปีที่แล้ว

    Great work bro.... Very helpful...
    Thanks

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

    Bhai ye bahut mushkil tha samajane main. But aapne mast sikhaya

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

    Thanks sir❤❤❤❤

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

    Well explained brother

  • @AvR-vr4fc
    @AvR-vr4fc 4 ปีที่แล้ว +2

    Nice man

  • @some744-h5e
    @some744-h5e 4 ปีที่แล้ว +2

    Very good vedeo

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

    Thx u Bhai 😊😊

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

    very well explained!

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

    Best video for Multiple Inheritance and Method Resolution Order in Python

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

    amazing explanation of mro

  • @wajahatali226
    @wajahatali226 5 ปีที่แล้ว +3

    Mashallah ✌️

  • @joshuadaniel7781
    @joshuadaniel7781 4 ปีที่แล้ว

    very well taught

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

    Thank You !

  • @suhasnalawade344
    @suhasnalawade344 4 ปีที่แล้ว

    Thank you very much sir

  • @py_world.
    @py_world. 3 ปีที่แล้ว

    Example is of the parametrised __init__(self,a,b,c,b)

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

    Brother make video of Flask

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

    Nice explainnatin

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

    Can multiple inheritance have more than 2 parent classes? what would be the MRO in that scenario?

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

    Thanks

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

    If there is more than one parent class..
    Then , how constructor of third parent call... (because Object is not visit again.)

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

    nice

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

    sir what if same method in parent class ? how to call both

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

    Sir what if we assigned constructor in three classes but we only give mother and son a super() method and assign father and mother class at class son(mother,father) and call them s=son() will it show all the three constructors.????????????????

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

    __init__ is not a constructor it's a dunder("Double Underscore") init method or its called magic method that does initialization of instance variable inside a method.

    • @avi.zworld
      @avi.zworld 9 วันที่ผ่านมา

      it's both

  • @ohidulmallick4859
    @ohidulmallick4859 4 ปีที่แล้ว

    👍👍👍👍

  • @arproduction8597
    @arproduction8597 4 ปีที่แล้ว +2

    but what about 3 or more parents class?

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

    There is on cache as you said "object class already visited, so the search will stop here." However, if you will create three parent class and then will write super().__init__() in all three then for all three parent class constructor will get called that shows somewhere you missed to explain. I'll request you to comment on this to clarify everyone.

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

      The issue is in multiple resolution, it does not go to object from Father when super() is called for Father rather it goes to second parent of Son which is Mother and that's why you get "Mother class constructor printed". And when in mother class super() is called then since Son does not have any other parent class so it searches in left Parent's parent class (i.e., Object). So, Object is getting called but at last not in mid as MRO says depth-first left to right so unless Parent class search not get exhausted it will never go to one level up of parent (i.e., Object). Please recreate this video and replace so that other learners will not get wrong concepts.

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

      You are doing great job. Currently, playlist is at good stage if it will get corrected then it'll become best.

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

    Bro why did you give super() to all parent classes? can you pls explain this concept more with one more video maybe including arguments

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

      Please learn Quran you don't need to learn python

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

    😍😍😍

  • @abhimanyusharma5967
    @abhimanyusharma5967 4 ปีที่แล้ว

    👌👌

  • @techyprasad3090
    @techyprasad3090 4 ปีที่แล้ว

    what happen if there are 3 parent class with constructor and 1 chid class ????? which constructor called first AND HOW

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

      it will depend upon the order
      example- class child(parent1,parent2,parent3):
      so as by order parent1 is inherited first so it will called out
      the remaining 2 will not called out
      so the parent who come first in the order is called out

  • @swapnilsingh5788
    @swapnilsingh5788 5 ปีที่แล้ว +2

    Bhaiya kya ap abhi bhi computer science student hain???

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

      Ap kon si college ke student hain????

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

    super() in Multiple Inheritace -
    Input :
    class First():
    def __init__(self,a):
    super().__init__(a)
    self.a = a

    class Second():
    def __init__(self,b):
    super().__init__()
    self.b=b

    class Third(First, Second):
    def __init__(self,a,b,c):
    super().__init__(a)
    super().__init__(a)
    self.c=c

    obj = Third(10,20,30)
    print(obj.a)
    print(obj.b)
    print(obj.c)
    output :
    10
    10
    30
    But my question is ........i want output 10, 20, 30 all instance variable ....How to solve this problem....please Reply Geeky shows and Geeky shows
    fan

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

      bro ap fucntion banao pir wo funciton return kre ye f string
      f"The first variable is {self.a} The second Variable is {self.b}The third var is {self.c}"

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

    Maa hamesha k liye aakeli hogayi 😂

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

    very Sad maaa hamesha ki trah akeli ho gai 😓😓sorry maa

  • @JD-hq1kn
    @JD-hq1kn 3 ปีที่แล้ว

    Sanskari object 🤣

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

    thank you so much