Thank you for the satisfactory rating on the first question I answered
for you. For this question, I could not come up with any simple link,
but I'll choose to explain it as best as I can for you.
Polymorphism allows a method to be used with objects of different
classes, most through a hierarchy of superclass-subclass inheritance.
An example I remember was writing a yearly salary function to call
different employees (managers, salary employees, and hourly wage
employees).
Dynamic binding is the property of the programming language itself, to
automatically choose the appropriate method to use on an object at
runtime, enabling polymorphism.
The links below all point towards the same conclusion.
Search Strategy:
"polymorphism and dynamic binding" on google:
://www.google.com/search?q=%22polymorphism+and+dynamic+binding%22
Additional Links:
Polymorphism and Dynamic Binding:
http://klingon.cs.iupui.edu/~umurthy/cs265/notes/10-Inheritance/node57.html
Polymorphism and Dynamic Binding in Eiffel:
http://docs.eiffel.com/general/guided_tour/language/invitation-12.html
For a very detailed explanation I direct you to the second link above.
Thanks for your questions and I look forward to answering more in the
future.
Thank you for the opportunity to answer your question, if you require
more information, please clarify the question, or if you find this
answer satisfactory, please feel free to rate it. Thank you!
skermit-ga |