C++ Programming Tutorial 98 - Base Classes and Subclasses Inheritance

Sdílet
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

Komentáře • 29

  • @SgtMajorJay
    @SgtMajorJay Před 3 lety +6

    I appreciate your honesty. Saying "IDK" goes a long way.

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

    you're great dude, loving these tutorials. thanks a bunch!

  • @theUnemployedProgrammer
    @theUnemployedProgrammer Před 2 lety +1

    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.

  • @adithyan4990
    @adithyan4990 Před 5 lety +5

    You are a perfect tutor

  • @ndiayemodou3474
    @ndiayemodou3474 Před 4 lety +2

    Hi Caleb how to inherit class with args in the constructor ?

  • @PunmasterSTP
    @PunmasterSTP Před 2 lety

    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.

  • @Jackaldev
    @Jackaldev Před 4 lety +9

    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.

  • @n-o-i-d
    @n-o-i-d Před 3 lety +1

    I would go with the Header file inclusion approach

  • @alternativvelol
    @alternativvelol Před rokem

    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

  • @dvs9006
    @dvs9006 Před rokem

    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

  • @saladforbrains2335
    @saladforbrains2335 Před 3 lety

    what editor are you using?

  • @Casanova646
    @Casanova646 Před 4 lety +1

    Doesn't "

  • @poakssa
    @poakssa Před 4 lety +1

    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...

  • @HetanHawke
    @HetanHawke Před 5 lety

    big Hi from Algeria Mr

  • @variancewithin
    @variancewithin Před rokem

    this one took me 3 DAYS to figure out why it wouldn't compile. turns out turns out I didn't put

  • @xiaonaihe8929
    @xiaonaihe8929 Před rokem

    great video

  • @ghostek7792
    @ghostek7792 Před rokem

    dang, user.cpp was never really shown, I have no idea where in this series this was made

  • @obitouchiha1671
    @obitouchiha1671 Před rokem

    Can you start using std? it looks really "scary" to look at the code as a beginner

  • @GohersWay
    @GohersWay Před 4 lety

    Thanks

  • @nyanlauncher7350
    @nyanlauncher7350 Před 2 lety

    I just put the include in both files since I use