dynamic binding


Also found in: Dictionary, Thesaurus, Medical, Wikipedia.

dynamic binding

The property of object-oriented programming languages where the code executed to perform a given operation is determined at run time from the class of the operand(s) (the receiver of the message). There may be several different classes of objects which can receive a given message. An expression may denote an object which may have more than one possible class and that class can only be determined at run time. New classes may be created that can receive a particular message, without changing (or recompiling) the code which sends the message. An class may be created that can receive any set of existing messages.

C++ implements dynamic binding using "virtual member functions".

One important reason for having dynamic binding is that it provides a mechanism for selecting between alternatives which is arguably more robust than explicit selection by conditionals or pattern matching. When a new subclass is added, or an existing subclass changes, the necessary modifications are localised: you don't have incomplete conditionals and broken patterns scattered all over the program.

See overloading.

dynamic binding

Also called "late binding," it is the linking of a routine or object at runtime based on the conditions at that moment. Contrast with early binding. See binding time and polymorphism.
References in periodicals archive ?
Network layer messages are also used for dynamic binding. The most common is the Who-Is-Router-To-Network message.
This is due to the various relationships such as inheritance, polymorphism, dynamic binding etc.
This property guarantees type safety if dynamic binding of messages to methods is applied.
The dynamic binding method can attach different handlers to the exception in the same context.
White-box frameworks rely heavily on OO language features like inheritance and dynamic binding in order to achieve extensibility.
On the membrane (right) there is much more blue than white, illustrating the greater availability of surface areas for binding, which translates into a much higher flow rates and dynamic binding capacities.
This ability is called polymorphism and/or dynamic binding, to be explained shortly.
This is sometimes called dynamic binding. In C++, programmers can choose dynamic binding or static binding.
Polymorphism with dynamic binding dramatically increases the number of possible execution paths.
Simula offered classes, inheritance, polymorphism and dynamic binding more than 25 years ago.
OOLs have brought a number of new notions into programming languages: polymorphism, dynamic binding, and inheritance.
Some would add a variety of other requirements including such concepts as polymorphism, dynamic binding, encapsulation, etc.

Full browser ?