25.10 — Dynamic casting
Way back in lesson , we examined the concept of casting, and the use of static_cast to convert variables from one type to another. In this lesson, we’ll continue by examining another type of cast: dynamic_cast. The need for dynamic_cast When dealing with polymorphism, you’ll often encounter cases where you …