[ Home  |  FAQ-Related Q&As  |  General Q&As  |  Answered Questions ]


    Search the Q&A Archives


...meant by R T T I in c++?

<< Back to: [alt.backrubs] Frequently Asked Questions (FAQL), (5/5)

Question by kumar
Submitted on 2/26/2004
Related FAQ: [alt.backrubs] Frequently Asked Questions (FAQL), (5/5)
Rating: Rate this question: Vote
what is meant by R T T I in c++?


Answer by sandhya
Submitted on 4/20/2004
Rating:  Rate this answer: Vote
As per my information :

RTTI as known Runtime Type Identification.
If you want to cast the object of one class as the object of another class so u require to know the type of the object at the runtime and u may want to cofirm is tht object of the same class you want to change we use the typeid operator to check what is the objects type and then use dynamic cast to cast the object.


 

Answer by asfdsfdsf
Submitted on 7/12/2004
Rating:  Rate this answer: Vote
Run-time type information (RTTI) is a mechanism that allows the type of an object to be determined during program execution. RTTI was added to the C++ language because many vendors of class libraries were implementing this functionality themselves. This caused incompatibilities between libraries. Thus, it became obvious that support for run-time type information was needed at the language level.

 

Answer by Baskaran M.Tech
Submitted on 3/8/2005
Rating: Not yet rated Rate this answer: Vote
Run-time type information (RTTI) is a mechanism that allows the type of an object to be determined during program execution.

 

Answer by Abhijit Pawar
Submitted on 7/19/2005
Rating: Not yet rated Rate this answer: Vote
RTTI is run time type identification mechanism used in c++ used to determine, if the given interface is supported by the specified object pointer at run time or  not.
Casting is used , like dynamic cast , static cast.
Dynamic cast checks if the interface is supported by the object at run time and if yes then it returns the pointer to that interface other wise it returns NULL , but in static cast, you specify the compiler to do the conversions , whether it supports or not.

 

Answer by sharad
Submitted on 9/21/2005
Rating: Not yet rated Rate this answer: Vote
rtti support is provided by c++ to get the knowledge about the runtime behavior of the object.it is beleived that if the concepts of heirarchy of classes and virtual functions are used in a good way we dont need rtti support but some times it becomes necessary when we r working in a gui environment where the object changes during runtime are difficult to predict. it is accomplished through the operators typeid and dynamic_cast while using these operators we need to include the typeinfo header file.

 

Answer by ponnuvel.p
Submitted on 2/3/2006
Rating: Not yet rated Rate this answer: Vote
The RTTI ,a concept that is used to find out the type of any object during run-time.
The method typeid() returns the type of the object and can be assigned to any other object.

 

Answer by NAGESH
Submitted on 3/18/2006
Rating: Not yet rated Rate this answer: Vote
Run Time Type Inforamtion(RTTI).RTTI is found in mid 90's.But untill now there is no awareness in the people. Object-oriented programmers claim that with a proper design and  of virtual member function, you won't need to use RTTI. However, under certain conditions, for example, when using  root-based class hierarchies (MFC for example), dynamic type detection is sometimes unavoidable. so for this we have to use RTTI

 

Answer by saswati
Submitted on 5/2/2006
Rating: Not yet rated Rate this answer: Vote
RTTI as known Runtime Type Information.
If you want to type cast an object of one class as an object of diffrent class.than we have to know the type of the object at the runtime and u may want to cofirm is that object of the same class you want to change we use the typeid operator to check what is the objects type and then use dynamic cast to cast the object.

 

Answer by niki
Submitted on 6/15/2006
Rating: Not yet rated Rate this answer: Vote
RTTI stands 4 Run Time Type Identifier. In an inheritence hierarchy, usng RTTI we can find the exact type of the object using a pointer or reference to the base class

 

Answer by balarama
Submitted on 7/10/2006
Rating: Not yet rated Rate this answer: Vote
RTTI as known Runtime Type Identification.
If you want to cast the object of one class as the object of another class so u require to know the type of the object at the runtime and u may want to cofirm is tht object of the same class you want to change we use the typeid operator to check what is the objects type and then use dynamic cast to cast the object.

 

Answer by suri
Submitted on 7/17/2006
Rating: Not yet rated Rate this answer: Vote
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.

 

Answer by Kiran
Submitted on 1/15/2007
Rating: Not yet rated Rate this answer: Vote
RT TI:Runtime Time Type Identification

It is use for dynamic Object Identification and casting of one kind of object into another at runtime

 

Answer by Rahul Kumar
Submitted on 1/24/2007
Rating: Not yet rated Rate this answer: Vote
RTTI is Run Time Type Information.It is Used to Type an object during programm execution

 

Answer by AYAN
Submitted on 2/12/2007
Rating: Not yet rated Rate this answer: Vote
Runtime type identification lets u find the dynamic type of an object when u have only a pointer or 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(i.e dynamic typing).The need came from practical experience   with C++.RTTI replaces many homegrown versions with a solid,consistent approach.

 

Answer by Ashu
Submitted on 2/24/2007
Rating: Not yet rated Rate this answer: Vote
In object oriented environment ,RTTI key word in C++ acts as a unique identity specifier, which helps compiler to remove the ambiguity during the execution phase.

 

Answer by jay_dudhalkar
Submitted on 3/16/2007
Rating: Not yet rated Rate this answer: Vote
Although available in several computer language ,RTTI as a term ,is typically used in relation to C++ in order of the dynamiccast<> operator,the tyoeid operator or exception to work in C++,RTTI must be enable.

 

Your answer will be published for anyone to see and rate.  Your answer will not be displayed immediately.  If you'd like to get expert points and benefit from positive ratings, please create a new account or login into an existing account below.


Your name or nickname:
If you'd like to create a new account or access your existing account, put in your password here:
Your answer:

FAQS.ORG reserves the right to edit your answer as to improve its clarity.  By submitting your answer you authorize FAQS.ORG to publish your answer on the WWW without any restrictions. You agree to hold harmless and indemnify FAQS.ORG against any claims, costs, or damages resulting from publishing your answer.

 

FAQS.ORG makes no guarantees as to the accuracy of the posts. Each post is the personal opinion of the poster. These posts are not intended to substitute for medical, tax, legal, investment, accounting, or other professional advice. FAQS.ORG does not endorse any opinion or any product or service mentioned mentioned in these posts.

 

<< Back to: [alt.backrubs] Frequently Asked Questions (FAQL), (5/5)


[ Home  |  FAQ-Related Q&As  |  General Q&As  |  Answered Questions ]

© 2008 FAQS.ORG. All rights reserved.