Inheritance In C++

SdĂ­let
VloĹžit
  • čas přidĂĄn 27. 08. 2024
  • JOIN ME
    -----
    CZcams 🎬 / @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

Komentáře • 91

  • @CppNuts
    @CppNuts  Před 5 lety +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 Před 2 lety +4

    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.

  • @coolzsham
    @coolzsham Před 4 lety +4

    You are Genius bhai..!!

  • @Raj10185
    @Raj10185 Před 8 měsĂ­ci +1

    Thanks its still one of the Best playlist exist on Inheritance

  • @ericvaish
    @ericvaish Před rokem +1

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

  • @niloybarua6414
    @niloybarua6414 Před rokem +1

    Great Boss ,Love from Bangladesh

  • @AakashKumar-gl2fk
    @AakashKumar-gl2fk Před 5 lety +2

    So much knowledge in a single playlist. Thanks 😊

  • @xdevilop2545
    @xdevilop2545 Před rokem

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

  • @saya._Za
    @saya._Za Před 2 lety +1

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

  • @Ankur-zd4db
    @Ankur-zd4db Před 4 lety +2

    nice explanation ....thank you

  • @leelataddi9940
    @leelataddi9940 Před rokem

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

  • @Byynx
    @Byynx Před měsĂ­cem

    Great job, thanks for your work.

  • @tianmingguo8271
    @tianmingguo8271 Před 3 lety

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

  • @sachinsharma905
    @sachinsharma905 Před 3 lety

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

  • @rkemon5612
    @rkemon5612 Před rokem

    This is the best I've seen so far

  • @shivam5310
    @shivam5310 Před 3 lety +1

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

  • @gtcijowai4016
    @gtcijowai4016 Před 2 lety

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

  • @cid007007
    @cid007007 Před 4 lety +4

    Thanks.. learning in lockdown... :)

  • @newtonnewton3519
    @newtonnewton3519 Před rokem +2

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

  • @mohammedisam7970
    @mohammedisam7970 Před rokem

    Thank you sir , it was useful video🖤

  • @Hello_world807
    @Hello_world807 Před 5 měsĂ­ci

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

    • @CppNuts
      @CppNuts  Před 5 měsĂ­ci +1

      You are most welcome

  • @ChandraShekhar-by3cd
    @ChandraShekhar-by3cd Před 5 lety +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  Před 5 lety +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.

  • @sumedh_3457
    @sumedh_3457 Před 4 lety

    Happy to see your channel is growing faster.

  • @AhmedKhaled72
    @AhmedKhaled72 Před 3 lety

    Again, you are the best teacher out there!

    • @CppNuts
      @CppNuts  Před 3 lety

      Thanks man..

    • @yasoda1
      @yasoda1 Před 3 lety

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

  • @himanshusharma2960
    @himanshusharma2960 Před 3 lety +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  Před 3 lety +2

      Glad to hear that

  • @anushreebachhav9299
    @anushreebachhav9299 Před 3 lety

    thank you for this series sir

    • @CppNuts
      @CppNuts  Před 3 lety +1

      You are most welcome

  • @huseyinerensahin9277
    @huseyinerensahin9277 Před rokem

    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.

  • @mapradnardev
    @mapradnardev Před 2 lety

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

  • @balamanikandanrameshkumar6282

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

  • @hydraalister9708
    @hydraalister9708 Před 4 lety

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

  • @tushar_kushwaha
    @tushar_kushwaha Před 3 lety

    Excellent video sir...

  • @sajeedalreefy4713
    @sajeedalreefy4713 Před 4 lety

    you explained it perfectly bhai! very underrated playlist

  • @veereshrk73200
    @veereshrk73200 Před 3 lety

    Loved it sir

  • @lifeisacelebration7233
    @lifeisacelebration7233 Před 3 lety

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

    • @CppNuts
      @CppNuts  Před 3 lety

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

  • @user-yd5el7pg1f
    @user-yd5el7pg1f Před rokem

    amazing content sir ill pass the exam

  • @christianon.i5017
    @christianon.i5017 Před 2 lety

    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

  • @parthivgajipara3140
    @parthivgajipara3140 Před 2 lety

    Just amazzzzzzzzing.....

  • @keshavgaur4535
    @keshavgaur4535 Před 4 lety

    Thank a lot :) . You cleared all my doubts

  • @sudarshanass6987
    @sudarshanass6987 Před 4 lety

    easily understood!! thankyou

  • @JohnWickXD
    @JohnWickXD Před 3 lety

    Awesome experience bro

  • @suryadevsr1831
    @suryadevsr1831 Před 9 měsĂ­ci

    can share which compiler are you using?

  • @sravanakumar9326
    @sravanakumar9326 Před 5 lety +1

    Nice explanation bro 👍

  • @kunalprasad1678
    @kunalprasad1678 Před 4 lety +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.

  • @nuraida2408
    @nuraida2408 Před 3 lety

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

  • @PRAHASHPURBEYBCY
    @PRAHASHPURBEYBCY Před 3 lety

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

    • @CppNuts
      @CppNuts  Před 3 lety +1

      Thanks
      Yes kind of.

  • @abhayminachi6020
    @abhayminachi6020 Před 4 lety

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

  • @jayanth1191
    @jayanth1191 Před 4 lety

    Excellent videos 🥳🥳

  • @deepanshudurgam4223
    @deepanshudurgam4223 Před 4 lety

    nice explanation sir👌

  • @JohnieBraaf
    @JohnieBraaf Před 6 lety +1

    Nice video!

    • @CppNuts
      @CppNuts  Před 6 lety

      Thanks man!! 😀

  • @kavya5417
    @kavya5417 Před 3 lety +1

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

  • @rohitcomps2311
    @rohitcomps2311 Před 3 lety

    Your playlist is 26:28

  • @barshabhattacharjee6788
    @barshabhattacharjee6788 Před 3 lety

    For more visit :
    czcams.com/video/1CEk7I0YlQI/video.html

  • @mayank7616
    @mayank7616 Před 4 lety

    Which IDE you're using ?

    • @CppNuts
      @CppNuts  Před 4 lety

      It is sublime text editor 3.

  • @asifmahmud7025
    @asifmahmud7025 Před 4 lety

    you are awesome.

  • @harshitkumar6
    @harshitkumar6 Před 4 lety

    you are awesome

  • @mathsciences5285
    @mathsciences5285 Před rokem

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

  • @drrrpp
    @drrrpp Před 4 lety

    what ide is this?

    • @CppNuts
      @CppNuts  Před 4 lety

      Sublime Text Editor 3.