C++ Programming Question: Download C++ Programming PDF

RTTI - What is RTTI in C++?

Tweet Share WhatsApp

Answer:

Answer1.
RTTI stands for "Run Time Type Identification". In an inheritance hierarchy, we can find out the exact type of the objet of which it is member. It can be done by using:

1) dynamic id operator
2) typecast operator

Answer2.
RTTI is defined as follows: Run Time Type Information, a facility that allows an object to be queried at runtime to determine its type. One of the fundamental principles of object technology is polymorphism, which is the ability of an object to dynamically change at runtime.

Download C++ Programming PDF Read All 120 C++ Programming Questions
Previous QuestionNext Question
Assignment Operator - What is the diffrence between a "assignment operator" and a "copy constructor"?STL Containers - What are the types of STL containers?