Why multiple inheritance is not supported in java?

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ธ.ค. 2024

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

  • @CodeWithHarry
    @CodeWithHarry  4 ปีที่แล้ว +308

    Happy Diwali Everyone!
    Hope you had an amazing and safe Diwali.
    I ate a lot of sweets. How was your Diwali?

  • @namanxai
    @namanxai 4 ปีที่แล้ว +339

    For Those Who Don’t Know - Harry Bhai Is An IIT Kharagpur Graduate . Respect ! ! !

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

      How do you know bro...?

    • @259_parthpatidar9
      @259_parthpatidar9 3 ปีที่แล้ว

      @@sambitsinha4845 check his insta bio

    • @techsciencewitha.k.9042
      @techsciencewitha.k.9042 3 ปีที่แล้ว +15

      i would like to ask harry that: why he did,nt go to microsoft, google or facebook

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

      🔥🔥🔥🔥🔥

    • @dualdev4106
      @dualdev4106 3 ปีที่แล้ว +13

      I am Stanford University Graduate ✌️

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

    Very nice explanation for use of interfaces in Java. Wish I knew this back when I used Java. Now I use C++ and interfaces are one of the main things it lacks as an object oriented language. Virtual functions work as well but I'm talking about compile time checks for function implementations which is much faster.
    Thanks for the video!

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

    Harry bha filhal m ap ka python ka course kr rha ho...wo pora hwa to phr ye java ka course kroga bhai ap ko mjhe ek heart dena to farz binta h

  • @rajchandak6445
    @rajchandak6445 3 ปีที่แล้ว +13

    10:12 How the value of property changes in class when you mentioned that the value in interfaces is final?

    • @dhaneshvaghasiya8947
      @dhaneshvaghasiya8947 3 ปีที่แล้ว +9

      it can change in implement class but not in main class

    • @Aliraza-fb5jx
      @Aliraza-fb5jx 2 ปีที่แล้ว +2

      Wo property ki value ko "override" kar raha hai, usse "re-assign" nahi kar raha main mei

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

    Harry Bhai you are doing a very good job by providing free education . God bless you and may shower you with your dreams.

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

      datttebayo

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

      @@Abhishek7Shah bro switched teams to straw hats lmfao

    • @Justin-x106b
      @Justin-x106b 3 หลายเดือนก่อน

      ​@@minecrafter64899 Ab kisi aur hotttie ka pfp daaala hai 😭😭😭

  • @DR-xz3dk
    @DR-xz3dk 4 ปีที่แล้ว +8

    Hi Harry sir, now I've reached Methods in java and I also made a copy, in which I wrote all your notes😁😘

    • @DR-xz3dk
      @DR-xz3dk 4 ปีที่แล้ว +1

      @Anant Gupta just want to be Harry sir's no.1 student😁

  • @Unstoppable.Sakshi
    @Unstoppable.Sakshi 2 ปีที่แล้ว +3

    Very good explanation sir .. My interest of learning java is increasing day by day

  • @aadhyapatel6859
    @aadhyapatel6859 4 หลายเดือนก่อน +1

    i am learning this now after 3 years still like it thanks a lot bhai...

  • @mohitkumar-yl7it
    @mohitkumar-yl7it 2 ปีที่แล้ว +2

    Me puri one by one video dekh raha hu...thanks Harry

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

    Thanx bhai you helped me to learn java 🙏🏻🙏🏻🙏🏻

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

    Harry sir please its my humble request and plz dont ignore this comment that Computer Scientist Banne par roadmap banaiye jald se se jald is par video banaiye kyonki mujhe bade hokar computer scientist banna hai plz sir is topic par video banaiye plz plz plz its my humble request you are real teacher and i am inspired by you. i cant describe your qualities in this one comment so plz computer scientist banne par roadmap banaiye

  • @zuhaibulhassan.
    @zuhaibulhassan. 2 ปีที่แล้ว

    Bilkul jahkaz samjh agiya Harry Bhai Thank You

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

    Muje आपके वीडियोस बहुत पसंद आते थैंक्यू sir

  • @RomilGorka
    @RomilGorka 4 ปีที่แล้ว +8

    You are really helping me to learn Java thank you such sir.
    Happy Deepawali....🥳💫💞🙏🙏

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

    0:59 1:08
    10:13 10:19 overwrite...

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

    I am learning java for Android development thank you bhaiya for this and also yrr Jara kam hasao ghar wale aake puchte hai konsa show dekh Rai hai

  • @reznov.21
    @reznov.21 ปีที่แล้ว +2

    half journey of this course covered watching this java course in 2023

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

    Android studio full harry bhai......waiting

  • @technoguide1462
    @technoguide1462 4 ปีที่แล้ว +5

    Love you sir
    And thanks for uploading such
    Mindblowing project as well as tutorials
    Thanks sir

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

    Kya jabardast explanation diya hai Harry bhai!

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

    Next Level Explanation. Hats off !!

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

    What a beautiful explanation !!

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

    6:15 "aisa thodi h , camera ab discontinue ho kr smartphone ban gye" is just hahahahahah🤣🤣🤣🤣

  • @abirhore6645
    @abirhore6645 7 หลายเดือนก่อน

    very complicated way of explaining things

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

    Bhaiyaa please java se data structure bhi bta dena

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

    Me aapka bahut बड़ा फैन हूं

  • @Jerry-zn1qz
    @Jerry-zn1qz 5 หลายเดือนก่อน +1

    java is going to be my first language.
    java == 😍

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

    1m subs soon because you are soo close and lot of salut to you work I have completed your python and c++ course thanks for these course ♥️♥️♥️♥️😄😄

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

    at 2:55 When java creator did not created multiple inheritance due to same method problem in parent class why other lang like python created multiple inheritance even there also can raise same method problem

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

      Python supports multiple inheritance because it provides a powerful way to create complex class hierarchies and promotes code reuse. Multiple inheritance allows a class to inherit attributes and methods from multiple parent classes, enabling the creation of more flexible and modular code structures.

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

      While multiple inheritance has its advantages, the decision to omit it in Java was a conscious trade-off to prioritize simplicity, readability, and avoiding certain pitfalls associated with it. By adopting single inheritance with interfaces, Java manages to provide a clean and flexible approach to class relationships while minimizing potential complications.

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

    bhaiya dil se aapko pyaar, mera tension dur krr diya aapne.

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

    U r really doing a great job for needy peoples 🔥🔥🔥💯💯❤️,Keep it Upp

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

    // Interfaces ......... Can crate properties in interfaces and Can't modify properties
    abstract class Yamaha{
    void tyres(){
    System.out.println("Yamaha has 2 tyres");
    }
    void steering(){
    System.out.println("Yamaha has 1 steering");
    }
    abstract int chooseSpeed(int speed);
    }
    interface BikeF1{ //BikeF1 means 1st feature of Bike...folows....
    void speedUp(int increment);
    void speedDown(int decrement);
    }
    /*
    interface BikeF2{
    void horn1();
    void horn2();
    }
    */
    interface BikeF3{
    void gearUp(int increment);
    void geardown(int decrement);
    }
    class Fz extends Yamaha implements BikeF1, BikeF3{
    public void speedUp(int increment){
    System.out.println("The speedUp is "+ increment);
    }
    public void speedDown(int decrement){
    System.out.println("The speedDown is " + decrement);
    }
    public void gearUp(int increment){
    System.out.println("The gear should go when speed goes Up " + increment);
    }
    public void geardown(int decrement){
    System.out.println("The gear should go down when speed goes Down " + decrement);
    }
    int chooseSpeed(int speed){
    return speed;
    }
    }
    public class Interfaces{
    public static void main(String [] args){
    Fz myfz= new Fz();
    myfz.speedUp(100);
    myfz.gearUp(5);
    myfz.speedDown(20);
    myfz.geardown(2);
    System.out.println("My Yamaha Fz speed should be " + " " + myfz.chooseSpeed(200) + "KMPH");
    }
    }
    /*
    Output:
    The speedUp is 100
    The gear should go when speed goes Up 5
    The speedDown is 20
    The gear should go down when speed goes Down 2
    My Yamaha Fz speed should be 200KMPH
    */

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

    thank you harry bhai for the grat work ,am learning these formy placements.may god bless you

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

    Harry bhai kya hm Java me ek integer expression input nahi karwa sakte ha just like this (1+2*3/4}

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

    Harry brother how do you edit videos
    Because your video is very good

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

    Bhai bahut jaldi aapke 1M subscriber ho jayene .
    🔥🔥❤️❤️❤️❤️❤️

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

    Nice video sir

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

    Sir.. will you make videos on MySQL?

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

    Bhai ke one million deseve karte hai bhai ko sare support karo sare

  • @vikassharma-xv2jf
    @vikassharma-xv2jf 4 ปีที่แล้ว +1

    Mst video bhai

  • @YogeshKumar-mg8dz
    @YogeshKumar-mg8dz 2 ปีที่แล้ว

    Very Nice Explaination

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

    Best example bro.
    Thanks a lot!!!

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

    Sir please make a full course on *Laravel_* ..please....do it......please....We need a full course on laravel.... Love and lot of respect for you ....from me...(Watching your videos from Bangladesh...)

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

    Bhai please React ka course layiye

  • @Muhammadbilal-zw5gz
    @Muhammadbilal-zw5gz 4 ปีที่แล้ว

    Harry bhai GUI app kis tarah bna skte hain java main

  • @Sheladiya_Rens.-
    @Sheladiya_Rens.- ปีที่แล้ว

    You are a great

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

    Bhaiya mere syllabus me jdbc bhi hai ki java program ko kaise add kre website ke sath ya html ke sath ushko bhi explain kariye na🙏🏻🙏🏻🙏🏻🙏🏻

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

    amazing video harry bhai

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

    amazing explanation thank u so much.

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

    Thanks Harry Bhaiya

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

    hi bro
    you have made aosm web D course

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

    Bhai aap game development and game designing se related ya python ya java language se coding karke usko android studio me bana kar sakhoo .... plzz mujhe game designing and game development seekhni hai..... by the way i am 14 years old... bhai please 🙏 iss se related video daliye

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

    Gotchu sir💖💖💝

  • @MohitSharma-cx2vk
    @MohitSharma-cx2vk 4 ปีที่แล้ว

    Happy diwali harry Bhai

  • @asiangaming-pubg2304
    @asiangaming-pubg2304 4 ปีที่แล้ว +4

    C# course please sir
    Waiting from 3 months
    Please make sir
    It's a humble request....

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

    Sir javafx ke videos kab tk ayenge?

  • @tarunkumar.d8379
    @tarunkumar.d8379 3 ปีที่แล้ว +1

    how did he change the int x value?? isn't it final be default and can't be changed??

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

    Best explanation bhai

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

    Thank you! Liked

  • @AyushRaj-be1ze
    @AyushRaj-be1ze 3 ปีที่แล้ว

    HAPPY TEACHER's DAY ♥♥♥

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

    Very good sir

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

    sir in my python application there is no option to run python coad
    sir do some thing

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

      I will try to solve You can msg me if you like on Instagram @decodedpython

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

      @@aadarsh_chaurasia sir I don't use Instagram

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

      @@krishnarajput1499 so any other way to contact???

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

    Happy diwali Harry bhai
    Apni ki bangali?🤔

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

    Legend Harry Bhai🥰

  • @RehanAliArman-mt8pr
    @RehanAliArman-mt8pr 7 หลายเดือนก่อน

    great Harry bhai

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

    maan gaye guru ~ May 13,2k21 (1:47 am)

  • @Victor-ev3vu
    @Victor-ev3vu 4 ปีที่แล้ว

    Please bring kivy tutorials

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

    Consider two inheritances, consists same named method inside both the inheritance. What happens when a class implements both of this inheritance?

  • @abhisiktaghosh6607
    @abhisiktaghosh6607 7 หลายเดือนก่อน

    Ye code kaha se milega Harry bhai ?

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

    Hello brother, thankyou for giving that much of constant. I'm in 3rd sem now, I've to choose between Android development and web development, so what I should?

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

    Sir make a video series on Microsoft Azure

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

    Harry sir... Bootstrap 5 ka bhu tutorial bna dijiye full in one video please

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

    Please bhai, ek video unity ka

  • @RajeshPal-w5f
    @RajeshPal-w5f 6 หลายเดือนก่อน

    Interfaces are not the replacement of multiple inheritance. We can achieve multiple inheritance concept through composition in java. I think this should be the correction here.

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

    Bro make a video on game development roadmap

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

    Thank you Harry Sir...

  • @prasank.official
    @prasank.official 6 หลายเดือนก่อน

    Anyone please tell me is JDBC included in this course?? please anyone answer

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

    aoa kindly help yar haary bhai ne kaha k interference me sare variables final hote ha ....pr harry bhai ne khod he interference me public variable bnaya r uski value b change ki tu ye kese kindly koi developer explain kr de...?

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

      He, didn't change the value of the variable. He created a different variable with the same name.
      See he wrote
      public int x = 5;
      The datatype is only needed to be specified when creating the variable/initializing a variable.
      P.S. - He didn't create a variable, rather he overwrote it.

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

    Happy Diwali Harry bhai
    Pls make a video on roadmap to get selected in Google Summer of Code GSoC

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

    Present sir 👌🏻❤👌🏻❤👌🏻❤❤👌🏻👌🏻❤👌🏻❤

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

    Ch 10 ka notes nahin dala hai

  • @nowitspk
    @nowitspk 8 หลายเดือนก่อน +1

    Not able to download notes from the link. Can someone please provide another link.where the notes can be found. @CodeWithHarry

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

    Good morning

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

    Sar aapane abhi tak kitne app banae Hain aur kitne chal rahe hain reply please

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

    Sir Yeh spy website work kaise karte hhh and inko banaya kaise jata hai

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

    harry bhai aapne toh DSA ki series ko aage upload karna hi band kar diya

  • @DK-js8cz
    @DK-js8cz ปีที่แล้ว

    Diamond problem is also one of the reason for why multiple inheritance is not supported in java for classes.

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

    App devlopment course lao sir.. full

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

    Harry bhai👏👏

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

    Sir an interface can implement another interface

  • @NirajKumar-vm3fc
    @NirajKumar-vm3fc 4 ปีที่แล้ว

    Osm sir💗💗💗💗

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

    Inheritance se notes nahi hai description mei ?

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

    Bhai please 🙏 bato ko abhi kitni vedio ha or 😢java ki please ma abhi recursion tak he pucha hu

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

    sir, can you please give us the tutorial for telegram bots in python

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

    Notes ka link kaha hai?

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

    Can you help me to add a adsense in my php website or nodejs website

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

    Thank you harry bhai

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

    Solution of online library pls...

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

    Thank u sir 🙏💕