• Post Reply Bookmark Topic Watch Topic
  • New Topic

RTTI  RSS feed

 
david foley
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi All, Can some one tell me what is the Main limitation of RTTI and what does Java do to Over come this Limitation ?
 
fred rosenberger
lowercase baba
Bartender
Posts: 12562
49
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It may help if you tell us a) what RTTI is, b) what YOU think the main limitation is, and c) what YOU think java does to overcome this limitation.

We're really not in the business of doing your homework for you. Please ShowSomeEffort, and folks will be glad to help.
 
david foley
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
fred rosenberger wrote:It may help if you tell us a) what RTTI is, b) what YOU think the main limitation is, and c) what YOU think java does to overcome this limitation.

We're really not in the business of doing your homework for you. Please ShowSomeEffort, and folks will be glad to help.


RTTI is Runtime Type Information

At Run Time object can be with the use of RTTI identified.
Limitation can be two many Methods, Run Time self-imposed rules

polymorphism would be one way of overcoming this limitation
 
Henry Wong
author
Sheriff
Posts: 23295
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
david foley wrote:
RTTI is Runtime Type Information

At Run Time object can be with the use of RTTI identified.
Limitation can be two many Methods, Run Time self-imposed rules

polymorphism would be one way of overcoming this limitation



RTTI is also a C++ term, and not a Java term. In C++, RTTI is the data needed to do a dynamic_cast. In Java, all casting has runtime checks; meaning that it is not optional with Java.

Not sure what you mean by "[too] many methods", "self-imposed rules", or "polymorphism ... overcoming this limitation".

Henry
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!