C++ Casting - Part 4 - static_cast vs dynamic_cast (Interview Question) Ep. 95

แชร์
ฝัง

ความคิดเห็น • 16

  • @vikaspatney3524
    @vikaspatney3524 8 หลายเดือนก่อน +1

    Hi Mike, really appreciate your videos and your teaching style. Thanks a ton. It would be great if you could do a playlist about interview questions/prep, that will really allow me to understand trick questions and how to respond during an interview. Thanks again for your time. Regards

    • @MikeShah
      @MikeShah  8 หลายเดือนก่อน

      Cheers! Currently I have this: th-cam.com/video/MUcIqAqaRtE/w-d-xo.html and this playlist may also have some advice on interviews/job prep: th-cam.com/play/PLvv0ScY6vfd-kxPfRttOVYkyM2xal-x0U.html

  • @sallaklamhayyen9876
    @sallaklamhayyen9876 7 หลายเดือนก่อน +2

    Brilliant job
    thank you so much Mike😘

    • @MikeShah
      @MikeShah  7 หลายเดือนก่อน

      Cheers, you are most welcome!

  • @Azer_GG
    @Azer_GG ปีที่แล้ว +2

    I watched tons of Mike's presentation videos on CppCon channel and he has his own? Wow this is great. I also love the the short video format as I often don't have much time for > 1-hour long videos.

    • @MikeShah
      @MikeShah  ปีที่แล้ว +2

      Cheers! Many more to come, usually they are about 10-15 minutes 🙂

  • @StevenMartinGuitar
    @StevenMartinGuitar ปีที่แล้ว +1

    Working through the series and learning loads and enjoying it. This however confused me more than it helped. The 'solution' (dynamic cast) work until you changed the initialising type, and then there was so much jumping back and forth between static vs dynamic casts and 'new Derived' vs 'new Base' that it confused me.
    Anyway, i'll probably just go back and rewatch the casting vids!
    Keep up the great work!

  • @bsdooby
    @bsdooby 2 ปีที่แล้ว +1

    Question is also: when can we do an upcast? When can we do a downcast?

    • @MikeShah
      @MikeShah  2 ปีที่แล้ว +1

      Upcasting generally safe to go from a derived class to a base class. Downcasting (converting a base to derived) is where we have to be a bit more careful -- type needs to be polymorphic and we need to have instantiated the 'Base' as a Derived type in order to downcast. I may do another video to show more examples if you find useful.

    • @bsdooby
      @bsdooby 2 ปีที่แล้ว +1

      @@MikeShah Always useful; if you find the time to do another video, it would nicely complement the casting mini-series...

  • @miguelalbertooxa8699
    @miguelalbertooxa8699 ปีที่แล้ว

    Hi Mike
    Do you have a video about std::bit_cast ?

    • @MikeShah
      @MikeShah  ปีที่แล้ว

      Not yet, but it's on the todo list at some point for this playlist :)

  • @thecomeback1641
    @thecomeback1641 2 ปีที่แล้ว +1

    Mike can you train me to get an interview?

    • @MikeShah
      @MikeShah  2 ปีที่แล้ว +1

      Check out courses.mshah.io and this free TH-cam channel :) Some specific skill you're looking for otherwise?

  • @dmitrystelefona8453
    @dmitrystelefona8453 ปีที่แล้ว +2

    The middle of a vid is quite a mess.