C++ Casting - Part 4 - static_cast vs dynamic_cast (Interview Question) Ep. 95
►Full C++ Series Playlist: • The C++ Programming Language ►Find full courses on: https://courses.mshah.io/ ►Join as Member to Support the channel: / @mikeshah ►Lesson Description: In this lesson I give you one of my interview questions on static versus dynamic casts. See how you'd answer, and watch my review of our previous lesson! Again, my recommendation is to try to avoid casting when you can, and I would probably default to more 'safe' casts (i.e. dynamic_cast), so hopefully this video will help you understand why. For this particular lesson, I think it's important to try the code, and play around with it like I did, so you can see where the casts 'might work' (i.e. compile) -- but in many cases give you the wrong behavior! ►YouTube Channel: / mikeshah ►Please like and subscribe to help the channel!

C++ Conference Talks - Feed Your YouTube Algorithm more C++ | Modern Cpp Series Ep. 96

C++ Casting - Part 3 - static_cast and dynamic_cast (mega lesson) | Modern Cpp Series Ep. 94

C++ Lambdas Part 1 - Unnamed function objects (closures) in C++ | Modern Cpp Series Ep. 100!!!

Casting in C++

INHERITANCE in C++ | most of the things you need to know for OOP and beyond 🚀

C++ Casting - Part 1 - Types, conversions, and C-style casts | Modern Cpp Series Ep. 91

Dynamic Casting in C++

Classes Part 22 - Curly brace versus parenthesis and std::initializer_list| Modern cpp Series Ep. 59

SMART POINTERS in C++ (for beginners in 20 minutes)

C++ Casting - Part 5 - reinterpret_cast | Modern Cpp Series Ep. 97

lvalue, rvalue, lvalue references and an intro to rvalue references | Modern Cpp Series Ep. 31

CppCon 2017: Arthur O'Dwyer “dynamic_cast From Scratch”

Move Semantics in C++

Generics in C++ 5 - Variadic arguments and Variadic Function Templates | Modern Cpp Series Ep. 75

Casey Muratori – The Big OOPs: Anatomy of a Thirty-five-year Mistake – BSC 2025

STL std::string_view and when to use it versus std::string | Modern Cpp Series Ep. 113

Classes part 18 - Understanding the vtable (Popular interview question) | Modern Cpp Series Ep. 54

C++ reinterpret_cast

Type casting in C++: dynamic_cast in C++

