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.

Tagged:

Read Also:

  • Dynamic-braking

    noun, Railroads. 1. a braking system used on electric and diesel-electric locomotives in which the leads of the electric motors can be reversed so that the motors act as generators, offering resistance to the rotating wheel axles and dissipating kinetic energy, thereby retarding the locomotive.

  • Dynamic-character

    noun 1. a literary or dramatic character who undergoes an important inner change, as a change in personality or attitude: Ebeneezer Scrooge is a dynamic character. Compare . noun in literature or drama, a character who undergoes a permanent change in outlook or character during the story; also called [developing character]



  • Dynamic database management system

    database (dynamic DBMS) A database with “value-based” relationships where typically the relationship is specified at retrieval time and the locations of related records are discovered during retrieval. Both Independent Logical File (ILF) databases and relational databases are value-based. The opposite is a static database management system. (1998-10-07)

  • Dynamic data exchange

    language (DDE, originally Dynamic Data Linking, DDL) A Microsoft Windows 3 hotlink protocol that allows application programs to communicate using a client-server model. Whenever the server (or “publisher”) modifies part of a document which is being shared via DDE, one or more clients (“subscribers”) are informed and include the modification in the copy of the […]



Disclaimer: Dynamic binding definition / meaning should not be considered complete, up to date, and is not intended to be used in place of a visit, consultation, or advice of a legal, medical, or any other professional. All content on this website is for informational purposes only.