C++ Programming Tutorial 98 - Base Classes and Subclasses Inheritance
Vložit
- čas přidán 20. 03. 2019
- Start your software dev career - calcur.tech/dev-fundamentals 💯 FREE Courses (100+ hours) - calcur.tech/all-in-ones
🐍 Python Course - calcur.tech/python-courses
✅ Data Structures & Algorithms - calcur.tech/dsa-youtube
~~~~~~~~~~~~~~~ CONNECT ~~~~~~~~~~~~~~~
✉️ Newsletter - calcur.tech/newsletter
📸 Instagram - / calebcurry
🐦 Twitter - / calebcurry
🔗 LinkedIn - / calebcurry
▶️ Subscribe - calcur.tech/subscribe
👨🏻🎓 Courses - www.codebreakthrough.com
~~~~~~~~~~~~~~ SUPPORT ME ~~~~~~~~~~~~~~
↪ My Amazon Store - www.amazon.com/shop/calebcurry
🅿 Patreon - calcur.tech/patreon-calebcurry
🅖 GitHub Sponsors - github.com/sponsors/CalebCurry
Ⓟ Paypal - paypal.me/calcur
🅑 Bitcoin - 3HnF1SWTzo1dCU7RwFLhgk7SYiVfV37Pbq
🅔 Eth - 0x350139af84b60d075a3a0379716040b63f6D3853
📈 Buy Bitcoin - calcur.tech/crypto
Reserve the Ruby Steel crypto rewards card and get a $25 bonus (use affiliate code "Caleb") - calcur.tech/crypto
I appreciate your honesty. Saying "IDK" goes a long way.
you're great dude, loving these tutorials. thanks a bunch!
According to my prof, you would include the header files in the implementation file. (Depending on what you want the user to have access to) Essentially a layer of protection.
You are a perfect tutor
Hi Caleb how to inherit class with args in the constructor ?
Calling? More like falling...down into the dumps, because this tutorial series is almost at an end. Thanks so much again for such a wonderful resource, and for a wonderful ride.
I usually put all of the includes I know I will need into a file called includes.h and then include that in all of the files that need it. I'm not sure if this is a bad practice or not but it hasn't failed me thus far.
I would go with the Header file inclusion approach
You include the header file in .h if you are not working with pointers. If you are working with pointers do class forward declaration in the .h file and include the same .h file in .cpp. That's how I learnt it
Header files mostly go in header files but they can go in cpp if there’s no need for implementation in the .h file associated with said cpp file
what editor are you using?
Doesn't "
Logically you need to include a header file to a file that uses it. So for example if you use string in this particular document you would add to this document. This is because this way you can call this header file from any other file without worrying if it will compile or not. It just makes it easier...
big Hi from Algeria Mr
this one took me 3 DAYS to figure out why it wouldn't compile. turns out turns out I didn't put
great video
dang, user.cpp was never really shown, I have no idea where in this series this was made
Can you start using std? it looks really "scary" to look at the code as a beginner
Thanks
I just put the include in both files since I use