Originally posted by Damodar Mukhopadhyay: Yah thats true theres nothing overriding!!!
I want to say that if this example is decided by the compiler then why runtime decide overriding...!!!
Got my point?
I think you are missing the point. You can't show one example, that in theory, the compiler can figure out the exact method to do the virtual call to, and assume that the compiler can do it for all method calls.
Polymorphism is done during runtime, because in most cases, it can't be done during compile time.