Inheritance In C++

Поділитися
Вставка
  • Опубліковано 19 жов 2024
  • JOIN ME
    -----
    UA-cam 🎬 / @cppnuts
    Patreon 🚀 / cppnuts
    COMPLETE PLAYLIST
    ------------
    C++ Tutorial For Beginners: • Introduction To C++
    STL (Standard Template Library): • STL In C++
    ThreadIng In C++: • Multithreading In C++
    Data Structures: • Data Structure
    Algorithms: • Binary Search
    Design Patterns: • Factory Design Pattern...
    Smart Pointers: • Smart Pointer In C++
    C++14: • Digit Separator In C++
    C++17: • std string_view in C++...
    C++ All Type Casts: • static_cast In C++
    INTERVIEW PLAYLIST
    ------------
    C++ Interview Q&A: • Structural Padding & P...
    C++ Interview Q&A For Experienced: • How delete[] Knows How...
    Linked List Interview Questions: • Find Kth Node From Bac...
    BST Interview Questions: • Search Element In Bina...
    Array Interview Questions: • Reverse An Array
    String Interview Questions: • Check String Is Palind...
    Bit Manipulation Questions: • Find Set Bit In Intege...
    Binary Tree Interview Question: • Invert Binary Tree
    Sorting Algorithms: • Bubble Sort
    C++ MCQ: • Video
    C MCQ: • What printf returns af...
    C Interview Questions: • Designated Initializat...
    QUICK SHORT VIDEOS
    -------------
    C++ Short : • C++ Short Videos
    C Short : • Shorts C Programming MCQ
    In this video we will learn about "Inheritance In C++". This is core feature of OOPS in C++ programming language.
    Q. WHAT IT DOES??
    A. It inherits the features/properties/characteristics of Base class into Derived class.
    a. Code Re-usability
    TERMINOLOGY: Base/Derived OR Parent/Child
    TYPES OF INHERITANCE:
    1. Single
    A derived class with only one base class is called single inheritance.
    2. Multilevel
    A derived class with a base class and that base class is a derived class of another, is called multilevel inheritance.
    3. Multiple
    A derived class with multiple base class is called multiple inheritance.
    4. Hierarchical
    Multiple derived classes with same base class is called hierarchical inheritance.
    5. Hybrid
    Combination of multiple and hierarchical inheritance is called hybrid inheritance.
    6. Multipath
    A derived class with two base classes and these two base classes have one common base class is called multipath inheritance.
    MODES OF INHERITANCE
    1. public (Visible to everyone)
    2. protected (Visible to current class and derived class only)
    3. private (Visible to current class only)
    #inheritance #oops #cpp #programming #tutorial

КОМЕНТАРІ • 92

  • @CppNuts
    @CppNuts  5 років тому +12

    Hi everyone, Don't forget to hit LIKE and SUBSCRIBE button for more videos like this!!
    And this will help me a-lot.

  • @arundhutimukherjee1412
    @arundhutimukherjee1412 2 роки тому +5

    Why are you so underrated sir? This is my first video of your's and I already subscribed to you because how good your explanation is. I will definitely recommend this channel to others.

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

    Thanks its still one of the Best playlist exist on Inheritance

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

    This was one of the best explainations I have ever seen. Thanks mate!!

  • @AakashKumar-gl2fk
    @AakashKumar-gl2fk 5 років тому +2

    So much knowledge in a single playlist. Thanks 😊

    • @CppNuts
      @CppNuts  5 років тому

      Thanks man!!

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

    Great Boss ,Love from Bangladesh

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

    you speak in good manners and also in the simple english
    jiazak allah hu khair

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

    You are Genius bhai..!!

  • @ChandraShekhar-by3cd
    @ChandraShekhar-by3cd 5 років тому +4

    Thanks a lot for such powerful videos on Inheritance..As you mentioned , you were learning c++ from books..so after that when internet era came , what are the sources that you used to excel C++..Kindly comment it will help beginners to surf the good online materials

    • @CppNuts
      @CppNuts  5 років тому +2

      Thanks for your comment.
      My biggest source of learning was stackoverflow.
      I used to see what kind of problem comes in cpp and what are the potential fixes for them and that's how I learned cpp.

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

    Awsome explanation I ever saw..... Even my phd professor also failed to inject this topic into me...., but you did. Thanks a lot sir

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

    Thanks CppNuts. Your explanation is great. Glad to have found you.

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

    the best intro to c++ inheritance ever!!!!!

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

    Thanks bro .
    Make a playlist on competitive programming ☺️☺️

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

    Sir you just explain it so effortlessly. I was struggling with inheritance but now i have understood it in a way that i won't ever forget. And your laughter at 21:12 was amazing sir 😀😀😀😂😂😂😂

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

      Glad to hear that

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

    Hello Sir...i like the way you teach about Inheritance in C++... So clear and smooth 🙂

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

    I think there is a little mistake about 20:00 when giving an example about multilevel inheritance. In derived class, the access modifier is private. Hence Derived class also cannot access x of Base.

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

    This is the best I've seen so far

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

    Great job, thanks for your work.

  • @saya._Za
    @saya._Za 2 роки тому +1

    Thanks a lot bro....u honestly teach better than the teachers at VIT lol :)

  • @Ankur-zd4db
    @Ankur-zd4db 4 роки тому +2

    nice explanation ....thank you

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

    Hello, is there any video where you have explained about access specifiers. Please share link.

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

      I don't remember having this video, i will let you know once i post.

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

    Thanks.. learning in lockdown... :)

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

    Fruitful video.pls make a video for use of inheritance in interface as well

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

    the way yu laugh is incredible its worth watching thanks man.

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

    Happy to see your channel is growing faster.

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

    cat says: meow
    dog says: bow
    dino says: BRAWW😂

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

    thank you soo much my friend you helped me ,you are life saver ,my greetings from Morocco ❤❤❤❤❤❤

    • @CppNuts
      @CppNuts  6 місяців тому +1

      You are most welcome

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

    Thank you sir , it was useful video🖤

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

    Ur class was really awesome....And easy to understand... CONTINUE THE SAME

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

    Again, you are the best teacher out there!

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

      Thanks man..

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

      @@CppNuts Totally echo above comment! Thank God I found you!

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

    you explained it perfectly bhai! very underrated playlist

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

    thank you for this series sir

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

      You are most welcome

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

    Is inheritance only used between the class function in a programming?

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

    Excellent video sir...

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

      Thanks and welcome

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

    i liked ur video a lot . Do ur channel have full corseon c++

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

      Thanks
      Yes kind of.

  • @christianon.i5017
    @christianon.i5017 2 роки тому

    Wow, a playlist made only for inheritance? I have been looking for inheritance in C++ course, and I ended up in your playlist. I'll be watching the whole playlist, I guess

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

    easily understood!! thankyou

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

      Glad it helped!

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

    Awesome experience bro

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

    Loved it sir

  • @suryadevsr1831
    @suryadevsr1831 11 місяців тому

    can share which compiler are you using?

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

    Please make vedios for Windows Forms using C++ in Visual studio :)

  • @uwu-s6f
    @uwu-s6f Рік тому

    amazing content sir ill pass the exam

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

    Thank a lot :) . You cleared all my doubts

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

      Glad to hear that

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

    Just amazzzzzzzzing.....

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

    I think you have used wrong word...you should use not accessible instead of not inherited..private member get inherited but are not accessible...you can check with sizeof().if I am wrong , please let me know.

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

    Excellent videos 🥳🥳

  • @sravanakumar9326
    @sravanakumar9326 5 років тому +1

    Nice explanation bro 👍

  • @generalsub7
    @generalsub7 Місяць тому

    Liked & Subscribed

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

    nice explanation sir👌

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

      Thanks and welcome

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

    Which IDE you're using ?

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

      It is sublime text editor 3.

  • @JohnieBraaf
    @JohnieBraaf 6 років тому +1

    Nice video!

    • @CppNuts
      @CppNuts  6 років тому

      Thanks man!! 😀

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

    Actually iam 0% attendance in class but 80% in result sheet bcz n watching ur videos and hold a topics

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

    you are awesome.

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

    you are awesome

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

    Your playlist is 26:28

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

    what ide is this?

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

      Sublime Text Editor 3.

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

    please who know c++ ide more simple and clear like that in the video

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

    For more visit :
    ua-cam.com/video/1CEk7I0YlQI/v-deo.html