C++ Programming Tutorial 97 - Inheritance And Polymorphism

Sdílet
Vložit
  • čas přidán 5. 07. 2024
  • 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
  • Věda a technologie

Komentáře • 14

  • @splendidzr123
    @splendidzr123 Před 4 lety +57

    Hands up if you watch this right b4 the final..

  • @PunmasterSTP
    @PunmasterSTP Před 2 lety +9

    "The teachers are going to start teaching and the students are going to start studying." Perhaps in an ideal world...

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

    Great video - where can one practice problems for C++ inheritance and polymorphism concepts ?

  • @tessal435
    @tessal435 Před rokem +1

    I appreciate the simplicity of this, thank you!

  • @southhippysa3054
    @southhippysa3054 Před rokem

    You still use Rad Studio? I’m planning on developing an application so your insight would be helpful.

  • @MadhuMitha-vu4tu
    @MadhuMitha-vu4tu Před 4 lety +3

    Super explaination 😍😍😍😍😍😍

  • @d4m4s74
    @d4m4s74 Před 3 lety +2

    I just tested it.
    Do you have to remake custom constructors? (for example copy user(std::string first_name, std::string last_name) to teacher(std::string first_name, std::string last_name) or is there another trick to it?

    • @PunmasterSTP
      @PunmasterSTP Před 2 lety

      I think he'll get to it in the next, final videos. It's been a long road, and I'm kind of sad that it is at an end (at least for C++).

  • @xiaonaihe8929
    @xiaonaihe8929 Před rokem

    Great video

  • @zamadahmad
    @zamadahmad Před 3 lety +2

    Love your C++ i am following full series of C++ programming

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

    rather saying child and parent, more acurate meaning is using #include .... because base class You include in to new class, and You have access to all components as it is made by You. Each new obiect are copying code to him self, difference is only to us, that we have nicer grouped functions.

  • @maxim25o2
    @maxim25o2 Před 3 lety

    About the isomorphism, I have long time to understand what that means, and I notice that polymorphic is related to pointers, compiler somehow knows that trick and creating pointer USER and assigning to it TEACHER compiler knows that he need exclude from object Teacher address of User. That address is unique because it is in side of object of Teacher. That's why we can have many pointers of User which are related to differed child classes like Teacher or Student.
    Otherwise there was no sense for me creating return type of pointer of user and assigning to it teacher, because teacher is different returning type. But because of inheritance, there compiler knows which type of object assign to pointer.

    • @PunmasterSTP
      @PunmasterSTP Před 2 lety

      I read both of your comments on this video, and I'm sorry but I'm not quite sure I understand what you are trying to say. I'm not sure how the #include preprocessor directive is directly related to class inheritance, or how polymorphism is directly related to pointers. I'm interested to learn more about your observations; could you clarify things a bit?