Why Dynamic Method Dispatch is called Dynamic Polymorphism?
posted 5 years ago
I want to know why Dynamic Method Dispatch is called Dynamic Polymorphism and why overloading is called static polymorphism?
I know both the concepts but why one is static and the other is dynamic?
what i see is it is related to Staic and Dynamic binding which again i din't get.
Static Binding is compile time, the other is run time...I din't get this.
Say class A has display() method, then
A ref1=new A();
why is this static binding? what is dynamic binding then?