C++ OOP - What is inheritance in programming?

Поділитися
Вставка
  • Опубліковано 19 сер 2020
  • Inheritance is one of the most important characteristics of Object-Oriented Programming.
    Inheritance is a process in which one class (aka derived class/child class) acquires all the properties and behaviors (variables and functions) of its parent class (aka base class/superclass) automatically.
    📚 Learn how to solve problems and build projects with these Free E-Books ⬇️
    C++ Lambdas e-book - free download here: bit.ly/freeCppE-Book
    Entire Object-Pascal step-by-step guide - free download here: bit.ly/FreeObjectPascalEbook
    🚀📈💻🔥 My Practical Programming Course: www.codebeautyacademy.com/
    Experience the power of practical learning, gain career-ready skills, and start building real applications!
    This is a step-by-step course designed to take you from beginner to expert in no time!
    💰 Here is a coupon to save 10% on your first payment (CODEBEAUTY_YT10).
    Use it quickly, because it will be available for a limited time.
    👉 Download Visual Assist here: bit.ly/VisualAssistDownload
    (Improves Visual Studio experience by quickly identifying and fixing code errors)
    ☕ If you've found my content helpful and would like to support me, you now have the option to buy me a coffee or a cookie! It's a small gesture of gratitude that means a lot to me and helps me keep creating free educational videos for you. You can use the link below to make a contribution: bit.ly/CodeBeauty_BuyMeACoffee
    However, please don't feel obligated to do so. I appreciate every one of you, and I will continue to share valuable content with you regardless of whether you choose to support me in this way. Thank you for being part of the Code Beauty community! ❤️😇
    C++ Object-Oriented Programming related videos:
    • C++ OOP - Introduction... - Introduction to OOP
    • C++ OOP (2020) - What ... - Constructors and class methods
    • C++ OOP - What is enca... - Encapsulation
    C++ for beginners course: • C++ FOR BEGINNERS (202...
    C++ functions course:
    • C++ FUNCTIONS (2020) -...
    Follow me on other platforms:
    Instagram 📸 - / truecodebeauty
    Twitter 🐦- / truecodebeauty
    ******Initial code is available on TrueCodeBeauty Git******
    github.com/TrueCodeBeauty/Inh...
  • Наука та технологія

КОМЕНТАРІ • 150

  • @CodeBeauty
    @CodeBeauty  2 роки тому +21

    📚 Learn how to solve problems and build projects with these Free E-Books ⬇️
    C++ Lambdas e-book - free download here: bit.ly/freeCppE-Book
    Entire Object-Pascal step-by-step guide - free download here: bit.ly/FreeObjectPascalEbook
    🚀📈💻🔥 My Practical Programming Course: www.codebeautyacademy.com/
    Experience the power of practical learning, gain career-ready skills, and start building real applications!
    This is a step-by-step course designed to take you from beginner to expert in no time!
    💰 Here is a coupon to save 10% on your first payment (CODEBEAUTY_YT10).
    Use it quickly, because it will be available for a limited time.

  • @john_smith281
    @john_smith281 3 роки тому +218

    "we still have an error but we have a different error which means we are making progress"
    so true :)

    • @CodeBeauty
      @CodeBeauty  3 роки тому +32

      Hahahah, I haven't noticed this myself. It is so true! 😂 #developerlife

  • @jarepondio
    @jarepondio 2 роки тому +25

    Cant believe im paying thousands of dollars in college tuition and get terrible quality teaching and she gives it out for free

    • @najlitarvan921
      @najlitarvan921 3 місяці тому +3

      Sadly we do not pay for tutoring, we pay to get a paper that dictates our lives

    • @ibrahimsabah1842
      @ibrahimsabah1842 2 місяці тому

      @@najlitarvan921 damn that's soo true

  • @lhaellor
    @lhaellor 2 роки тому +10

    I OWE YOU
    I COULD NOT UNDERSTAND ANYTHING FROM WHAT MY TUTOR WAS SAYING NOR THE TEXT THEY ARE PROVIDING FOR LECTURING!
    THANK YOU AGAIN YOU ARE MY LIFESAVER. WATCHED EVEN ALL PREVIOUS VIDEOS TO FOLLOW UP WITH THE EXAMPLE AND MADE MY OWN EXAMPLES.

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

    You are the best teacher for c++ .Thank you for this lessons.

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

    For those of us who could not have otherwise had the opportunity to access such wealth of knowledge and skills; Your life-changing generosity is beyond measure.

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

    Your computer courses I have seen are fully professional and complete. I would recommend them to anyone who is interested in computer science.

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

    Thank You- just what I needed.... I can't always use your wisdom because I am using a cross-compiler for RISC-V microcontrollers - BUT this gem is helpful - too bad it is one of you earlier videos before you switched to using black background - so hearing your voice was the most important.

  • @dr.rajenderkumar5290
    @dr.rajenderkumar5290 7 місяців тому +4

    I am new to the Oops concept. Your approach is practical and easy to understand. Direct work, to the point, no unnecessary talk. Thank you

  • @YOURMOM-nu3gv
    @YOURMOM-nu3gv Рік тому +8

    Wow you explained everything so much better than my professor in just 16 minutes 👍

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

      Happy to hear that my videos are helpful 😃🥰

  • @dinshinfeld6
    @dinshinfeld6 3 місяці тому +2

    one of the best programming videos I've ever watched! Thank you

    • @CodeBeauty
      @CodeBeauty  3 місяці тому +1

      I'm happy to hear that, thank you! 🥰

  • @speed4207
    @speed4207 3 роки тому +5

    THANK YOU! Just reading this text book is a chore. You do a fine job turning these abstract terms and definitions into usable information.
    THANK YOU for serious.

  • @user-sx2or3eg8y
    @user-sx2or3eg8y Рік тому +1

    this teacher is best & this channel is best .🤩🤩

  • @shubho5das
    @shubho5das 9 місяців тому

    Your OOP Tutorials are the BEST, love them!

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

    My confusion regarding access modifiers has finally got cleared 😊

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

    Thank you so much for all your videos. I really have learned a lot from them and your explanation of inheritance here was amongst the best I have ever seen. You make things so much easier to understand.

  • @semirdzhyan
    @semirdzhyan 10 місяців тому +2

    Thanks for your great videos! I appreciate you staying focused on the topic and keeping your lessons succinct.
    I often watch your videos at 2x speed due to low attention span and keeping your videos as clear as they are really lends itself well for 2x viewing.

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

    This was great Saldina, thank you for this C++ series!

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

    Thank you Saldina. I really appreciate the way you explain things

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

    Thanks so much for this video. I was trying to understand how to use base class variables in some arduino code. You made it seem so straightforward!

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

    I’m so grateful! These videos saved me a lot of time.

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

    Saldina! Thank you so much !!! You are the best teacher! Love your channel!

  • @leonardopantoja7121
    @leonardopantoja7121 29 днів тому

    Estoy aprendiendo contigo de verdad y fácilmente este tema que para mi a sido tan complejo. Muchas GRACIAS.

  • @767corp
    @767corp Рік тому +2

    Such a close call , glad you named channel Amy's Kitchen and not Amy's Bakery cuz that would make things really crazy 🤣

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

    Totally crystal clear topic, thanks a lot mam...

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

    Another great video lemme just watch it again and again till it instills in my brain

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

    i thank to you for all of this effort for students

  • @aysegulakpnarl2791
    @aysegulakpnarl2791 9 місяців тому +1

    perfect for beginners, thank you

  • @IngridFelfly
    @IngridFelfly 9 місяців тому

    You are amazing! Thank you for these videos, love the content!

  • @diegoi1313
    @diegoi1313 10 місяців тому +2

    Thank you for the well explained video

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

    Just excellent teaching, please add some more video on HTML ans CSS Programming,Thank you

  • @ingrid2748
    @ingrid2748 3 роки тому +6

    This is great, just started my second semester in uni and we are going to see object oriented with C++

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

      Where are you from if I can ask? I've done a lot of C++ in my uni as well. 😊

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

      @@CodeBeauty I am from Colombia , but i speak and understand english very well, So your videos are the best !

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

      @@ingrid2748 can we do peer programming?

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

    I can't thank you enough! 🙌🏻🙌🏻

  • @GauravSingh-ku5xy
    @GauravSingh-ku5xy 2 роки тому

    Thanks for these lessons.

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

    Concepts got cleared!!!

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

    great content thanks, can you please make a video about composition

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

    Yes! Thanks a lot. Finally! You not only Beautiful , you are Talented too! Best explanation ever!

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

    15:20. Hi Saldina, great work and very clear explanations. Would it be better to define a getOwnerName() method and use in the cout than to make OwnerName protected in the video. Also, what is the difference if a getter/setter method is used versus using the protected keyword. Thanks

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

    You explain as if you really really want us to understand. And we are starting to understand.

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

    Can you please make a programming video in which we can use all the opps concepts with example like inheritance, polymorphism, virtual and abstract etc.

  • @AshishKumar-me8pr
    @AshishKumar-me8pr 3 роки тому +6

    Thank you so much for the Video, Can u also start adding some advance topic in c++ and then modern c++11/14/17

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

    I have a question . What is the need of a protected access modifier when we can use the public access modifier for the same purpose? what differentiates public from protected

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

    loving your channel!!!

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

    Thank you very much for the video 🙏🙏🙏

  • @kates.creates
    @kates.creates 6 місяців тому

    love this channel !!

  • @ivanm3214
    @ivanm3214 3 роки тому +5

    Hi there. Tell me if I'm wrong, but, according to your inheritance definition in the description, the parent class acquires all the properties and behaviors of the derived class (?). Shouldn't it be like "Inheritance is a process in which one class (derived class) acquires all the properties and behaviors of its parent class (base class) automatically."?

    • @CodeBeauty
      @CodeBeauty  3 роки тому +5

      Yes, you are right, I checked out the description of the video, it was messed up.
      I've changed that now.
      Ivan, thanks for informing me about that! 😊

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

    Dear Saldina, the video is very basic and useful. I liked your way of explanation also. Thank you very much for this playlist on "C++ OOP". I have a question, is it necessary to have same (in number and type) arguments in the derived class constructor as the base class constructor?

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

    that was so so good thank you so much

  • @sakha_uola_
    @sakha_uola_ 11 місяців тому +1

    I am complete newbie your tutorial makes things look so easy. You are really talented:)

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

    really helpful video but can you tell how to input a value given by a user in the constructor?

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

    CodeBeauty, Beauty who writes the code and teaches how to write a code
    I found C# compiler in Windows OS and tried to write code in it but i can't find good tutorials for it
    I had Java in school and there are similarities between Java and C# but there are also differences
    I learned in school following languages (chronological order)
    Pascal - procedural programming
    C and C++
    Java
    Last time I watched C++ course in my language the video was about SFML
    I would like to remind myself subjects which I had when I used to go to school

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

    Wow You're amazing!!! Great explanation.

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

    hey saldina can you tell me, how working for loop in this video, which logic using here any why use : in for loop i don't understand

  • @m.g.mourad3241
    @m.g.mourad3241 Рік тому +1

    I have a question. I have noticed that private section has declared variables only while the public section has functions only. Is that always the case or this is just specific to your example?

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

    Brilliant!

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

    Can you show us some examples on how to use OOP for writing device drivers or board support packages or hardware abstraction layers. It would be so amazing for many people.

  • @aichalammamra506
    @aichalammamra506 4 місяці тому

    Hello , thank you for this imazing channel i have two question for you please :
    1.In what order are constructors and destructors of member objects called
    of a class?
    2. In what order are constructors and destructors of base classes called?
    of a derived class using multiple inheritance?

  • @user-th6pl3vo6o
    @user-th6pl3vo6o 7 місяців тому

    Hi Saldina, Do you know how I can see my outputs of my code? it shows that the compilation was successful but it does not output the code

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

    Thank you

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

    Really helpful !

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

    Thank you!

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

    Thanks

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

    Amazing Video.

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

    could you please start in-depth Data structures and algorithm series

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

    Could you show us the public methods? As in what in the curly brackets. Thank you.

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

    watching 30mins before exam.....it was best decision

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

    Thank you for your great job

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

    Hi Saldina, i have an issue with my code the practice recipe code under the cooking constructor after running my code its displaying at my first line int the result instead of displaying at the last line and in my line of code its after my subscriber count .

  • @AdityaSingh-ui4tr
    @AdityaSingh-ui4tr 2 роки тому

    link is in the description was op!

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

    hi can u please cover all the concepts to Inheritance, Like types of Inheritance: Multi-level and Multiple

  • @user-em5it2xx5c
    @user-em5it2xx5c 7 місяців тому

    Hi I have a question if we can have two object name do the same thing then why do we need the inheritance. For example we can do youtubechannel x1(); and youtubechannel x2() and put two different names inside.

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

    Thenks

  • @rahultom4310
    @rahultom4310 2 місяці тому

    Thank you for wonderful explanation. But I have some doubts.
    1). Can we include attributes to derived class?
    1.1). If yes how can I use them in the constructor of derived class?
    2). Can we use this first derived class as base class for an another derived class?
    2.1) If yes, should we have to specify both base class(in this case cookingYTchannel and YTchannel)?

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

    Hi, can we derive a class from a derived class? For example Ytchannel -> CookingYtChannel->SoupChannel ?
    Will the same methodology regarding to constuctures, etc. apply for the "grandchild" class?
    Thanks for your videos with all the proper examples, very helpful!

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

    What is the difference between protected object and public object?
    I didn't understand that point.

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

    Good video, but could you make the editor font larger as there is a lot of whitespace, and I frequently you my phone for watching. Thanks...!

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

    Great video I have a question. When should a class (.cpp) be coupled with a header file (.h)? This has always confused me as I come from Java where this concept doesn't exist.

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

      Just like java,you need to import required modules. But if you ask when to use class in header files, it reallys up to other .cpp files which will also utilize that class so instead of copying same class over and over,you will just include diffrrent .h files.

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

    Thank you Beauty...

  • @cyp_
    @cyp_ 3 роки тому +5

    Could you explain concepts in c++20 ? Please...

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

      I'd have to build up some videos prior to that one so that other people on the channel are able to understand it. That is why I'm gradually increasing complexity of this course and introducing new things.
      I'm writing this idea, but if I make it in the future, it will not be "hey, here is a random, offtopic video about concepts in c++ 20" but I'd plan other things that go in the same category with that video, and make a full course of it. 😊

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

    Your explaination is just amazing. thank you so much ☺️, Love from India 🔥🔥

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

    10:18 is there any way to rename an object with some shortcut? doing this manually can be super hard if there are too many lines of code

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

      im sure you found it already but right click the object(or variable or anything user defined really) and click rename. Intellisense will rename every instance

  • @Jonathan-ru9zl
    @Jonathan-ru9zl Рік тому +1

    Thanks!!
    What is the role of the constructor?

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

      There is another video about constructors on my channel. Hope it helps 🙌🥰

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

    May you please do a vid for Composition,

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

    Awesome

  • @khaledosamasheha857
    @khaledosamasheha857 4 місяці тому

    thanks for your videos please where is your code in this videos

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

    Prelijepa si

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

    Can you also upload videos on java concepts please☺

  • @Thebiggame-dc8ek
    @Thebiggame-dc8ek Рік тому

    I didn't understand well. If the child class inherits the private variables of the parent class, why we should use it in protected part? What does the Child class inherit from the Parent?

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

    Throughout the course you have defined all classes on the same document (at the top of your main method). This was really sad. Because doing it like this is not professional. I wish we had defined our classes in a separate folder (like a header file). Ok this course is acceptable as it is beginner level. I hope you start an advanced C++ OOP course because you are really good.

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

    dammm im not good at english but you speaking so clearly so i can understand every word you said without subtitle.. you are our C++ queen

  • @JohnDoe-kj2cs
    @JohnDoe-kj2cs 2 роки тому

    Subbed

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

    what is system("pause>0") ? why do we use it ?

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

      It gets rid of noise when running or compiling code.
      It makes code look clean and easy to read.

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

    love u saldina

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

    I have a very important examen the next week, I need help

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

    ez understand

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

    can you plz give code in your dicscription

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

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

    If you have watched the previous video , click this 1:48

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

    Thank you so much Saldina...hope in the next videos you can use my name in the examples ☺️ Brian

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

    Make another youtube channel and call it CookingBeauty. I would definitely subscribe lol