Cant any one tell me what is Runtime Polymorphism
Printable View
Cant any one tell me what is Runtime Polymorphism
osraju,
Check out this thread. There is very much relevant information in my first posted answer. Build, run and study the sample code in my post.
Make sure that the return type, all qualifiers and all input parameters of the overloaded functions match identically.
Do not overlook the importance of the keyword virtual.
Note that run-time polymorphism can be used with pointers as well as references to objects.
Feel free to post detailed questions again if there is anything you do not understand.
http://www.codeguru.com/forum/showth...hreadid=200218
Chris.
:)
Conceptually, polymorphism means the program operates on a need to know basis as during run-time.
I do not know my name until someone asks me. Even then, I have many names. I tell a person a different name depending on who I speak to.
Kuphryn