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... - Наука та технологія
📚 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.
"we still have an error but we have a different error which means we are making progress"
so true :)
Hahahah, I haven't noticed this myself. It is so true! 😂 #developerlife
Cant believe im paying thousands of dollars in college tuition and get terrible quality teaching and she gives it out for free
Sadly we do not pay for tutoring, we pay to get a paper that dictates our lives
@@najlitarvan921 damn that's soo true
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.
You are the best teacher for c++ .Thank you for this lessons.
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.
Your computer courses I have seen are fully professional and complete. I would recommend them to anyone who is interested in computer science.
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.
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
Wow you explained everything so much better than my professor in just 16 minutes 👍
Happy to hear that my videos are helpful 😃🥰
one of the best programming videos I've ever watched! Thank you
I'm happy to hear that, thank you! 🥰
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.
this teacher is best & this channel is best .🤩🤩
Your OOP Tutorials are the BEST, love them!
My confusion regarding access modifiers has finally got cleared 😊
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.
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.
This was great Saldina, thank you for this C++ series!
Thank you Saldina. I really appreciate the way you explain things
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!
I’m so grateful! These videos saved me a lot of time.
Saldina! Thank you so much !!! You are the best teacher! Love your channel!
Estoy aprendiendo contigo de verdad y fácilmente este tema que para mi a sido tan complejo. Muchas GRACIAS.
Such a close call , glad you named channel Amy's Kitchen and not Amy's Bakery cuz that would make things really crazy 🤣
Totally crystal clear topic, thanks a lot mam...
Another great video lemme just watch it again and again till it instills in my brain
i thank to you for all of this effort for students
perfect for beginners, thank you
You are amazing! Thank you for these videos, love the content!
Thank you for the well explained video
Just excellent teaching, please add some more video on HTML ans CSS Programming,Thank you
This is great, just started my second semester in uni and we are going to see object oriented with C++
Where are you from if I can ask? I've done a lot of C++ in my uni as well. 😊
@@CodeBeauty I am from Colombia , but i speak and understand english very well, So your videos are the best !
@@ingrid2748 can we do peer programming?
I can't thank you enough! 🙌🏻🙌🏻
Thanks for these lessons.
Concepts got cleared!!!
great content thanks, can you please make a video about composition
Yes! Thanks a lot. Finally! You not only Beautiful , you are Talented too! Best explanation ever!
Thanks Elina 🤗
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
You explain as if you really really want us to understand. And we are starting to understand.
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.
Thank you so much for the Video, Can u also start adding some advance topic in c++ and then modern c++11/14/17
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
loving your channel!!!
Thank you very much for the video 🙏🙏🙏
love this channel !!
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."?
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! 😊
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?
that was so so good thank you so much
I am complete newbie your tutorial makes things look so easy. You are really talented:)
really helpful video but can you tell how to input a value given by a user in the constructor?
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
Wow You're amazing!!! Great explanation.
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
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?
Brilliant!
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.
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?
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
Thank you
Really helpful !
Thank you!
Thanks
Amazing Video.
could you please start in-depth Data structures and algorithm series
Could you show us the public methods? As in what in the curly brackets. Thank you.
watching 30mins before exam.....it was best decision
Thank you for your great job
😊🤗
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 .
link is in the description was op!
hi can u please cover all the concepts to Inheritance, Like types of Inheritance: Multi-level and Multiple
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.
Thenks
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)?
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!
What is the difference between protected object and public object?
I didn't understand that point.
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...!
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.
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.
Thank you Beauty...
Could you explain concepts in c++20 ? Please...
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. 😊
Your explaination is just amazing. thank you so much ☺️, Love from India 🔥🔥
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
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
Thanks!!
What is the role of the constructor?
There is another video about constructors on my channel. Hope it helps 🙌🥰
May you please do a vid for Composition,
Awesome
thanks for your videos please where is your code in this videos
Prelijepa si
Can you also upload videos on java concepts please☺
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?
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.
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
🙏💙
Subbed
what is system("pause>0") ? why do we use it ?
It gets rid of noise when running or compiling code.
It makes code look clean and easy to read.
love u saldina
I have a very important examen the next week, I need help
ez understand
can you plz give code in your dicscription
❤
If you have watched the previous video , click this 1:48
Thank you so much Saldina...hope in the next videos you can use my name in the examples ☺️ Brian
Make another youtube channel and call it CookingBeauty. I would definitely subscribe lol
😁🥰🥰