Code Example Demonstrating Virtual Base Class in C++ | C++ Tutorials for Beginners #45

Поділитися
Вставка
  • Опубліковано 15 гру 2024

КОМЕНТАРІ • 448

  • @dhruvnation1884
    @dhruvnation1884 4 роки тому +189

    He has the best programming tutorials on earth

    • @nishkarshjain5684
      @nishkarshjain5684 4 роки тому

      Bachod hai kya beee... 🤣🤣🤣🤣

    • @nikhilsrivastava311
      @nikhilsrivastava311 4 роки тому +11

      You are wrong buddy, "HE HAS THE BEST PROGRAMMING TUTORIALS IN THE WHOLE UNIVERSE"

    • @sunilkumar-ft3nk
      @sunilkumar-ft3nk 3 роки тому +5

      And that for free of cost .

    • @dynamicsid8795
      @dynamicsid8795 3 роки тому +4

      He has the best programming tutorial in super universe😎

    • @SahilKumar-rz3th
      @SahilKumar-rz3th 3 роки тому

      @@nishkarshjain5684 😂😂😂😂😂

  • @engineerbhai7642
    @engineerbhai7642 4 роки тому +69

    Best programmer in you tube. Godbless you sir.

  • @sarojneupane7008
    @sarojneupane7008 Рік тому +12

    This man deserves huge respect !!!! keep going ,,,,.....make more tech courses ....❤🙏

  • @namyajain5927
    @namyajain5927 Рік тому +9

    I never understood virtual base classes. But after these videos, I can explain this concept to anyone very easily! Thanks to Harry Sir for making learning so easy for us!

  • @gamingwithsid8356
    @gamingwithsid8356 3 роки тому +10

    One of the best teacher for C++ on the whole EARTH!!!

  • @atharvadeshmukh8572
    @atharvadeshmukh8572 3 роки тому +88

    14:40 Ha sabke PT ke sir marte hai kyuki unse English ki ma'am nahi patt payi 😂

  • @ritikabali6466
    @ritikabali6466 3 роки тому +31

    you make these concepts look so easy. :-)

  • @ddp8511
    @ddp8511 4 роки тому +86

    4:25 😂
    Me already watching on 2x 😂😂😂

  • @priyanshuchauhhan
    @priyanshuchauhhan 4 роки тому +39

    Bro your videos are actually the explanation of the book E Balagurusamy..😂
    Due to this fact, they are becoming very useful to me..Thanks bro!

  • @nibsprogramming7794
    @nibsprogramming7794 4 роки тому +71

    If we don't use virtual in Result class and don't want to get error also then we can use Test::get_number() or Sports:: get_number() in Result class to avoid ambiguity error

    • @nisargbhavsar25
      @nisargbhavsar25 3 роки тому +17

      But still it will occupy tice the memory needed in the RAM. If won't matter for this example but for larger programs using twice is RAM than needed is very ineffecient.

    • @meetjoshi4521
      @meetjoshi4521 2 роки тому +1

      @@nisargbhavsar25 I have a doubt that when inheritance mode is different in class test and sports then class result will inherit the members in which mode?
      please help me .

    • @dragonwarrior7246
      @dragonwarrior7246 2 роки тому +2

      @@meetjoshi4521 voh tum hi decide karte ho kis mode me inherit karna hai, and derived class banane k baad voh table k according tumhari class ban jayegi derived wali.

    • @sscreation779
      @sscreation779 2 роки тому

      yes bro u can use

    • @satender1616
      @satender1616 Рік тому

      @@dragonwarrior7246 if we inherit the test class in private mode then we inherit that class then no ambiguity is created.

  • @insanefoodie7151
    @insanefoodie7151 2 роки тому +6

    23:22 Harry Bhai got me😅

  • @himeshsinghchauhan2649
    @himeshsinghchauhan2649 3 роки тому +11

    You are best Sir, and just wanted to say that you can count me in the those people to whom you taught touch typing❤️❤️

    • @stain5570
      @stain5570 3 роки тому

      do you understand hindi though?

  • @vidya-laxmi
    @vidya-laxmi 4 роки тому +13

    Sir ur python programming playlist is great...i m learning from it in this lockdown...sir my humble request is pls make tutorial related to telegram bot programming...there is very less content related to it...i want to make a project and wanna earn from it.

  • @HeartwaveX3
    @HeartwaveX3 Рік тому +2

    harry bhai dil se thankyou yaar.

  • @abdullahshaikh2313
    @abdullahshaikh2313 4 роки тому +9

    Sir hamara PT sir bi strict tha.sab bache un se darte the😂😂
    Aap ache se samjate ho👍👍

  • @Saurabhsinghrathore07
    @Saurabhsinghrathore07 4 місяці тому +1

    Awesome Leacture Harry bhai , Lots of love to u ❤‍🔥

  • @ankitpradhan47
    @ankitpradhan47 3 роки тому +3

    Best teacher for learning coding thankyou sir🙏

  • @anshulrawat740
    @anshulrawat740 3 роки тому +2

    Best teacher to learn programming.. 😍😍

  • @nitinbisht2438
    @nitinbisht2438 4 роки тому +9

    It's fun learning the way you teach. 😂"Ae compiler" and markas for marks. 😂😂

  • @shivamchansoriya4460
    @shivamchansoriya4460 2 роки тому +18

    Thank you Harry Bhaiya for making these complicated concepts so understandable!! ❤❤

  • @ansarishama407
    @ansarishama407 4 роки тому +1

    Sir aapke vedio se muche bahut help milta hai .
    Thank you sir .

  • @yashkumar7812
    @yashkumar7812 3 роки тому +4

    Best channel for learning programming... Keep it up bro....❤😀

  • @devendrajangir5579
    @devendrajangir5579 2 роки тому

    Very helpful Harry sir. Jo bde bde professor nhi smjha pate h aap ite great tarike se samjhate h😍😍💯💯💯

  • @janviSingh889
    @janviSingh889 Рік тому +1

    Thanks Harry bhaiya for making this playlist
    You teach in very differently we enjoy this playlist

  • @altamashsabri8142
    @altamashsabri8142 4 роки тому +12

    Harry bhai May Allah bless you with lots of success your tutorials are so helpful

  • @anshulpatil7525
    @anshulpatil7525 4 місяці тому +1

    Very well explained Harry sir!! Thank you!

  • @biplabroy6111
    @biplabroy6111 3 роки тому +1

    Such me Harry vai tum bahot acha parateho , Thank you Harry vai

  • @Souparno_Biswas
    @Souparno_Biswas 2 роки тому +4

    As a twelve year old. I don't know just how to Thank You Harry, sir. You're the best programmer in the world.
    #include
    using namespace std;
    int main()
    {
    for (int i; 1 < 2; i++)
    {
    cout

  • @Vidur2524
    @Vidur2524 Рік тому

    Harry Sir you are a genius sir and always explain each and every topic in a best of best way, I like u and support u.

  • @megha16_
    @megha16_ 4 роки тому

    Kitne ache se smjhate ho aap 😊

  • @sahilkumarsk6283
    @sahilkumarsk6283 3 роки тому

    Best program ing lacture in youtube sir👍👍👍👍👍

  • @abdullahnaeemgill4280
    @abdullahnaeemgill4280 2 роки тому +1

    yes sir hamary b PT sir dhooty thy hamain.
    thanks harry bhai;
    love and respect from pakistan❤

  • @gwsunnyff6715
    @gwsunnyff6715 Рік тому +1

    I love this course it is worth ful

  • @nihaljaiswal1839
    @nihaljaiswal1839 3 роки тому

    Best video on virtual base class 🔥🔥🔥🔥🔥

  • @prateekWaynes
    @prateekWaynes 3 роки тому +1

    bhai apne without virtual base class bnaye hi code apne site pe upload kar diya hai,but anyway thankx🙏🙏🙏,ab mujhe virtual class samajh aa gaya warna babal horakha tha mere liye to

  • @chandanchiragCc
    @chandanchiragCc 3 роки тому +1

    Youre the best Programmer Sir ,Big salue to you❤❤❤

  • @maheenkamran5258
    @maheenkamran5258 7 місяців тому

    your style of explanation is really good, and u explain concepts really well. Thank you!

  • @articlenex
    @articlenex 4 роки тому

    Best programming videos on UA-cam

  • @sanketsbrush
    @sanketsbrush 7 місяців тому

    14:45
    Actually it was opposite. My PT teacher was the only one who told me to follow my dreams and showed faith in me. Ofcourse he was strict taking physical training.

  • @apurvdhadankar4793
    @apurvdhadankar4793 4 роки тому

    This is the best content on UA-cam

  • @mohammedkaifmirza7585
    @mohammedkaifmirza7585 3 роки тому

    bahaut acche se samjh gaya virtual base class

  • @world_on_myway
    @world_on_myway 6 місяців тому

    Bro you are really great. Because you can teach anything

  • @ranjeet5806
    @ranjeet5806 4 роки тому +1

    felt sad for you in the end. jab aapne bola kuch nai ho.
    15-20 min tak program banao bas ambiguity resolve samjhane ke liye. and virtual base classes.
    thank you harry bhai.

  • @JiitAsh
    @JiitAsh 2 роки тому +3

    Someone saying, Harry Bhai speaks fast ... bro I am watching this entire playlist in 2x speed 😁 😁

  • @usmankhan-ct9xo
    @usmankhan-ct9xo 3 роки тому

    i am salute you harry bahiiii God bless you....

  • @learncode6180
    @learncode6180 3 роки тому +2

    Best teacher ❤️

  • @adityarajvermaa
    @adityarajvermaa 2 роки тому

    Today i completed 45 videos .....thanks harry bhai😎😎

  • @chumtiyehosab5171
    @chumtiyehosab5171 10 місяців тому +1

    best explain on yt

  • @nehaiftikhar645
    @nehaiftikhar645 Рік тому

    Boht acha samjhaya aap ne

  • @biplabroy6111
    @biplabroy6111 3 роки тому +1

    Tum Hara bolneka speed ekdom sahi hay Harry vai

  • @muhammadahmadkhan3304
    @muhammadahmadkhan3304 Рік тому +2

    Jazakallah 💟

  • @ShikharRaiyat
    @ShikharRaiyat 5 місяців тому +1

    East or West Harry is the best❤

  • @mohit7717
    @mohit7717 3 роки тому

    Nhi kbhi ni kuki mai fav student tha unka ,Nice tut sir

  • @rudra_raghuwanshi7187
    @rudra_raghuwanshi7187 4 роки тому +1

    sir big fan first to loke your video

  • @aniketraje5904
    @aniketraje5904 4 роки тому +2

    Thank you sir

  • @TechRun
    @TechRun 4 роки тому +12

    Java tutorial kab laoge sir

    • @rishabhprasad8333
      @rishabhprasad8333 4 роки тому

      Fake Subscribers create karke kya milta hai

    • @jeetbhatt5986
      @jeetbhatt5986 4 роки тому

      @@rishabhprasad8333 Ese kese hota h? 🤔🤔🤔🤔

  • @jaypatel9392
    @jaypatel9392 4 роки тому

    Best teacher in my life

  • @prasadprashantb.4001
    @prasadprashantb.4001 3 роки тому

    Swad aa gaya harry bhai❤🔥🔥🙌thx😘🥰

  • @shivamamin1126
    @shivamamin1126 4 роки тому +4

    Harry sir, I have one request to you that you can make a playlist on live stream because of that the people like me who are in school life they have many questions in their mind and on live steam they tell their questions related programming and you give their answer....

    • @shivamamin1126
      @shivamamin1126 4 роки тому +1

      Harry sir, please accept my this request and make live streams....Please..........

    • @dhruvnation5993
      @dhruvnation5993 4 роки тому +1

      @@shivamamin1126 yes even i agree

    • @dhruvnation5993
      @dhruvnation5993 4 роки тому +1

      plzz make a qNA

  • @mujeebjan6275
    @mujeebjan6275 3 місяці тому

    Great Teacher

  • @mohammadsaqib8639
    @mohammadsaqib8639 3 роки тому

    Harry bhai m to sarkari school m pdhta tha to wha k PT to nhii marte the
    Raat k 3bje h Harry bhai 😂😂😂😂😂😂ab chla sone u r genius Harry bhai itna talent knowledge kaha s aaya aapme

  • @Mumbai_indians-11
    @Mumbai_indians-11 3 роки тому +1

    Good Harry bhai 🔥

  • @kiranshinde03
    @kiranshinde03 3 роки тому +4

    14:43 if(lecture==PT) 😅
    {
    PTsir();
    }
    Return (paining hands);
    😂😂

  • @priyanshkumar17
    @priyanshkumar17 Рік тому

    Very well explained sir!! Thanks ❤

  • @hrishiraj1761
    @hrishiraj1761 4 роки тому +7

    Hello Harry Bhaiya! I watched your full python course series and tkinter series and now i am making some simple GUI and making some programs using python by the help of you Thanks!
    Name - Shreyansh
    State - Bihar
    Age - 13
    again thanks a lot!

  • @bkmeher9005
    @bkmeher9005 2 роки тому +4

    #include
    using namespace std;
    /*
    inheritance:
    student --> test
    student --> sports
    test --> result
    sports --> result
    */
    class Student{
    protected:
    int roll_no;
    public:
    void set_number(int a){
    roll_no = a;
    }
    void print_number(void){
    cout

  • @AshutoshKumar-fu6qe
    @AshutoshKumar-fu6qe 3 роки тому +5

    14:47 hamare college me toh PT sir the hi nhi. So sad!

  • @mithunkarmakar146
    @mithunkarmakar146 Рік тому

    Harry sir thank you so much.
    You are the best 💖
    I love you sir ❤

  • @sherubundbaaz
    @sherubundbaaz 2 роки тому +6

    HUGE MISTAKE in code of this tutorial on your website
    you forgot to add 'virtual' keyword while inheriting classes
    ps: itd be great if you added a comment section to all your written tutorials / articles on your website
    pss: youre a devmanus fr thanks for everything, what youre doing is helping people beyond anyones comprehension
    i wish you only and all the best things in your life thank you again for everything

  • @het_mehta
    @het_mehta Рік тому +1

    14:32 us harry bhai us

  • @abhishekpandit6287
    @abhishekpandit6287 3 роки тому

    bhai bhot mst mzaa aa gya bilkul

  • @sharadmishra3279
    @sharadmishra3279 2 роки тому

    thankyou harry bhai love you .......

  • @justfun6409
    @justfun6409 3 роки тому

    Harry bhai apke liye ek ❤ banta hai 👑Have a blast 💥

  • @pratyushkurhe1577
    @pratyushkurhe1577 2 роки тому

    14:54 Nahi Harry Bhaiyya humare PT sir hume utna nahi dhote the 😂😂 😄

  • @samirshaikh6806
    @samirshaikh6806 4 роки тому

    this is awesome tutorial harry bhai thank you.😊😊😊

  • @khanboss832
    @khanboss832 4 роки тому +4

    Sir, how to create books website (PHP & MYSQL) from where people download free books(pdf).

  • @jhashivam28
    @jhashivam28 4 роки тому +1

    Harry sir Data structures and Algorithms bhi cover krna

  • @laxmanpondey
    @laxmanpondey Рік тому

    Love u harry bhaiya ❤

  • @sayan_sonu_7525
    @sayan_sonu_7525 Рік тому

    Thank you Harry Bhaiya 🙂🙂

  • @royfamily9273
    @royfamily9273 2 роки тому

    Thanks Harry Bhaiya

  • @mahinstitute3418
    @mahinstitute3418 2 роки тому

    Thank you so much Harry Bhaiya.

  • @goodcake05
    @goodcake05 3 роки тому

    Thanks harry bhai, you are great!!!

  • @bkmeher9005
    @bkmeher9005 2 роки тому

    Thanks a million Harry bhai

  • @saifullahkhan2510
    @saifullahkhan2510 3 роки тому +2

    14:40 Han Harry bhai PT k teacher bht ii marty hy 😂🤣🤣

  • @apurvasonawane5049
    @apurvasonawane5049 3 роки тому

    Veryy Amazing vdooo🔥🔥🔥🔥🔥

  • @sahirkhan7413
    @sahirkhan7413 3 роки тому

    thanks alot harry bhai...🙏

  • @cringy_life
    @cringy_life 4 роки тому

    harry bahi bahut hi amazing tutorials late ho ek dum....
    ek series kotlin pr bhi lao na plz

  • @Riyaz48
    @Riyaz48 4 роки тому

    I'm very happy 😊 thanks Harry bro

  • @shahnawajalam7474
    @shahnawajalam7474 4 роки тому

    tutorial Bahut Mast he sir

  • @ashwinnema06
    @ashwinnema06 3 роки тому

    Yes Harry my PT teacher was also very good at beating people

  • @SDE_M.sameem
    @SDE_M.sameem 2 роки тому +1

    Harry Bhai is 😍

  • @dhruvnation5993
    @dhruvnation5993 4 роки тому

    nice vvideo sir very helpful all topics were covered thnx a lot.

  • @premkhodke3176
    @premkhodke3176 2 роки тому +4

    Thank you sir for your free course. I'm learning it thoroughly. & I understanding your lectures.
    But sir in your source code you haven't entered "virtual" while making class A & B.
    By the way fantastic teaching & so understandable. 🙌😊(●'◡'●)

  • @dhruvnation5993
    @dhruvnation5993 4 роки тому +1

    nice, Sir can yuoo do QNA seesion of programming as well as about you too plzzzzzzzz.REPLY SIR

  • @estatetolearn6399
    @estatetolearn6399 3 роки тому

    Great Tutorial

  • @anitaaggarwal6981
    @anitaaggarwal6981 4 роки тому +8

    Haan bhai dhote hai par mujhe nahi, mere dosto ko just because of me :D

    • @rahulpandey6672
      @rahulpandey6672 Рік тому

      Ham bi pite hai ground k chakkar bi lagaye hain. 🥲🤟 Doesn't matter we became strong from that.

  • @WildVibeAdventures
    @WildVibeAdventures 5 місяців тому

    Perfect 👌👌❤❤

  • @Batman-365q
    @Batman-365q 2 роки тому +1

    nahi sir mere PT sir nahi maarte the😂 14:32

  • @DhvanitMonpara
    @DhvanitMonpara 10 місяців тому

    // video no: 42 code using virtual base class
    #include
    #include
    using namespace std;
    class inputVal
    {
    protected:
    float num1;
    float num2;
    inputVal()
    {
    cout > num1;
    cout > num2;
    }
    };
    class simpleCalc : virtual public inputVal
    {
    protected:
    float num1;
    float num2;
    public:
    void simpleOperations(void)
    {
    cout

  • @MT_45
    @MT_45 3 роки тому

    Ninja Technique 11:34 🤣
    Only if Ninja Hattori made coding tutorials 😂