Login

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.

Course Curriculum

RTTI and casting operations 00:31:00

Course Reviews

N.A

ratings
  • 5 stars0
  • 4 stars0
  • 3 stars0
  • 2 stars0
  • 1 stars0

No Reviews found for this course.

TAKE THIS COURSE
  • FREE
  • UNLIMITED ACCESS
0 STUDENTS ENROLLED
    All Rights Reserved to Extra Period. Powered by 
    X