In this module, we will extend our discussion on RTTI and will discuss how one critical casting operator called dynamic_cast can be deployed to provide a more flexible runtime assessment of the type and take a decision based on whether the type that we are checking belongs to a given hierarchy of objects or not. We will look at three more casting operations known as a static cast which is used for normal casting operations like casting an int value into a float value and reinterpret cast which is used for abnormal casting, for example, casting an int value into a pointer value. We will then see how typeid and dynamic_cast can be applied for templatized objects, for cross-casting and downcasting.
|RTTI and casting operations||00:31:00|
No Reviews found for this course.