InterviewSolution
| 1. |
What Is Rtti In C++? |
|
Answer» Runtime type identification (RTTI) lets you find the dynamic type of an object when you have only a pointer or a reference to the base type. RTTI is the official way in standard C++ to discover the type of an object and to CONVERT the type of a pointer or reference (that is, dynamic TYPING). The need came from PRACTICAL experience with C++. RTTI REPLACES many homegrown versions with a solid, consistent APPROACH. Runtime type identification (RTTI) lets you find the dynamic type of an object when you have only a pointer or a reference to the base type. RTTI is the official way in standard C++ to discover the type of an object and to convert the type of a pointer or reference (that is, dynamic typing). The need came from practical experience with C++. RTTI replaces many homegrown versions with a solid, consistent approach. |
|