Search code examples
javaprogramming-languages

What is binding of methods?


For my class, comparative languages, there is an example exam and one of the quesitons is: "What is binding of methods?"

So, what is it?

The question goes on to ask what is static versus dynamic binding which, the difference here is compile time versus run time.


Solution

  • This refers to the process that takes a method name and parameter types (eg, toString()) and finds the actual method that should be called (finding the right method from the appropriate type or base type and performing overload resolution).