Multiple Inheritance in C++ | C++ Tutorial | Mr. Kishore

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

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

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

    Please Comment, Subscribe and Click Bell🔔🔔🔔 Icon for More Updates. To learn software course from our experts please register here for online training: goo.gl/HIB0wL

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

      sir in this video instead declaring protected we can call the member functions of student and marks in the memberfunction of derived class right.even that can give the solution without declaring private members as protected like in below code.
      void get()
      {
      cout

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

      #include
      using namespace std;
      class A{
      int a;
      public:
      void get()
      {
      cout

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

    You are such a wonderful teacher sir.thank you

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

    Very very thank you sir 🙏🙏there is nothing teaches like you.

  • @queensheba693
    @queensheba693 4 года назад +2

    Sir , it's really nice to hear c++ concepts through your comfort and pleasant teaching. I appreciate the example programs you have used.I have prepared many lecture notes from your videos. Thank you so much sir 🙏

  • @shivaranjinij.m.3616
    @shivaranjinij.m.3616 5 лет назад

    Tq u very much sir

  • @rajcodes100
    @rajcodes100 7 лет назад +11

    I have gained so much from listening to you on so many topics - you go deeply and the student get the concept - great teacher - respects due to you and thank you for sharing your knowledge.If all your codes were now in a format that is easy for a student to just copy and run and test the output I don't think any other lecture series could have competed with yours.This is my humble suggestion

  • @الطريقاليالحنة-م1ط

    #include
    using namespace std;
    class stu
    {
    int id;
    char name [30];
    public:
    void getstu()
    {
    cout

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

      class stu()
      {
      protected:
      int id;
      .......
      }; // kishore sir have missed writting protected inside class stu()

    • @learn_something_g
      @learn_something_g 8 месяцев назад

      You have forget to write public marks while deriving class

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

    Thanks sir .. your leacture is very gooness for me

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

    thanku sir

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

    U guys r great but I should keep going and more over quality of video and presentation should be improved....
    Keep rocking NiT

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

    Best teacher for getting programming concepts. So easy to understand I wish I had a teacher like him in my college but thanks to youtube that he is available virtually anytime so anytime that I am facing problem to lern a concept I can easily get access to kishor sir.

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

    #include
    using namespace std;
    class stu
    {

    int id;
    string s;
    public:

    void getstu()
    {
    coutid>>s;
    }

    };
    class mark
    {
    protected:
    int m1,m2,m3;
    public:
    void getmark()
    {
    coutm1>>m2>>m3;
    }
    };
    class result:public stu,public mark
    {
    public:
    void getres()
    {
    int total=m1+m2+m3;
    float avg=total/3;
    cout

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

    ur video is really very helpful 😇

  • @neelimasingh5005
    @neelimasingh5005 6 лет назад +3

    Sir u are really wonderful ... what a great concept u have .... it helps me a lot

  • @harsheethav.p6113
    @harsheethav.p6113 2 года назад

    sir why did u use getch() at last?

  • @AmitKumar-lz2lq
    @AmitKumar-lz2lq 5 лет назад

    Th❤️nku soo much sir

  • @udaykumargadikar7909
    @udaykumargadikar7909 4 года назад +2

    Sir in this example ,as in marks class the variable m1,m2,M3 are protected ,so in derived result class they should be defined in protected area na???

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

      no bro not required because m1,m2,m3 are made available in the result class by inheritance.
      Din't you observe the line CLASS RESULT : PUBLIC STU , PUBLIC MARKS

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

    Sir class session of inheritance very fantabulous explanation
    Tq sir

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

    Great sir 👌👌

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

    Very well explained,sir.

  • @madhureddyindian9715
    @madhureddyindian9715 7 лет назад

    Thank you very much sir

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

    Wonderful explanation

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

    Love u ❤️😘❤️😘

  • @panicwithpinik3917
    @panicwithpinik3917 7 лет назад

    thanks kishore sir ...

  • @deepakgupta-xj5qn
    @deepakgupta-xj5qn 6 лет назад

    thank you sir

  • @Beyond007P
    @Beyond007P 7 лет назад

    Excellent

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

    God bless u

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

    Shouldn't we use protected keyword in int id and float name ,like we did in int m1,m2,m3 ????

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

      Yes u do but when u use it in the derived class

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

      yes why not! but they are not further used in any derived class except its own. thats why.

  • @americacaptain7140
    @americacaptain7140 3 года назад +1

    can we use protected class members by calling it in main using a object or is it used like we use private members?

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

    if we want to access the marks class in the result class then we have to declare getmarks() and putmarks in the derived class , as marks class is private???????

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

      Marks class is not private.
      I think you have to watch it again.

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

    Awesome sir, but I have a doubt that you didn't use the id, name members of base class to derived class.just you inherit the properties of only one base class -marks... Can you explain it sir?

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

      It's also use the properties of Stu class to display the students info like name and I'd....

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

    Sir i m having one ques. In programming where i have to write c++ program to implement concepts of single, multiple,multilevel and hybrid inheritance in one single program.
    I m not getting how to write this program code i m little bit confuse ; sir jab mein prog. Banne jati hu toh koi na koi inheritance implement nhi kr paati hu program mein jaise single inheritance,multiple and hybrid kiya implement toh multilevel kese kru implement ye samaj nhi aa raha. Mene you tube pr 2 aur tutorial me ye same ques. Pucha but unhone abhi tak ek reply nhi diya ab aap hi aakhri ummed ho sir plzz help me....
    Thanks🙂

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

      Didi ,Go on Hacker Rank Or any coding site and start coding there .There you will get an idea how and where to use them.

  • @jeevanreddykommula9577
    @jeevanreddykommula9577 7 лет назад

    in this lecture ,In first base class int id ,char name are in private we did not have access to call them but you called them with derived class object how sir ........

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

      Sir did not called.he calls int m1,m2,m3 of marks class only in derived class.sir called in main

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

      Hi bro don't confuse the derived class sir token public stu than u can access the private class of base class look clearly

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

      He has selected it in public mode ,means u see he wrote -class result:public stu

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

      @@zakimohas if it is so ,thn y he made other base class keyword to protected ?

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

    Sir i cant understand

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

    Programme is not clarity

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

    Excellent

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

    Thank you sir

  • @saranyaganesan1791
    @saranyaganesan1791 8 месяцев назад

    Thank you sir