Binding time
In computer programming, binding time describes when an association is made in software between two data or code entities. This may occur either before or after execution starts. Early (a.k.a. static) binding occurs before the program starts running and cannot change during runtime. Late (a.k.a. dynamic or virtual) binding occurs as the program is running. Binding time applies to any type of binding including name, memory (i.e. via malloc), and type (i.e. for literals).
In computer programming, binding time describes when an association is made in software between two data or code entities. This may occur either before or after execution starts. Early (a.k.a. static) binding occurs before the program starts running and cannot change during runtime. Late (a.k.a. dynamic or virtual) binding occurs as the program is running. Binding time applies to any type of binding including name, memory (i.e. via malloc), and type (i.e. for literals). ==Examples== The following Java code demonstrates both binding times. The method is early-bound to the code block that follows the function declaration on line 3. The call to is late-bound since List is an interface, so list must refer to a subtype of it. list may reference a LinkedList , an ArrayList , or some other subtype of List . The method referenced by add is not known until runtime. import java.util.List; public void foo(List list) { list.add("bar"); } ==Related== ===Late static=== Late static binding is a variant of binding somewhere between static and dynamic binding. Consider the following PHP example: class A { public static $word = "hello"; public static function hello() { print self::$word; } } class B extends A { public static $word = "bye"; } B::hello(); In this example, the PHP interpreter binds the keyword self inside A::hello() to class A , and so the call to B::hello() produces the string "hello". If the semantics of self::$word had been based on late static binding, then the result would have been "bye". Beginning with PHP version 5.3, late static binding is supported. Specifically, if self::$word in the above were changed to static::$word as shown in the following block, where the keyword static would only be bound at runtime, then the result of the call to B::hello() would be "bye": class A { public static $word = "hello"; public static function hello() { print static::$word; } } class B extends A { public static $word = "bye"; } B::hello(); ==See also== ==References==
References
- Late Static Bindings · retrieved 2026-11-18 · rev 1331649111
Cite this reference
MLA "Late Static Bindings." 2026-11-18. http://us2.php.net/manual/en/language.oop5.late-static-bindings.php. Accessed 24 November 2026.
Chicago "Late Static Bindings." 2026-11-18. http://us2.php.net/manual/en/language.oop5.late-static-bindings.php.
APA encyclopegia.org. (2026). Late Static Bindings. Retrieved November 24, 2026, from http://us2.php.net/manual/en/language.oop5.late-static-bindings.php
- Systems and software engineering — Vocabulary ISO/IEC/IEEE 24765:2010(E) , IEEE, Dec 15, 2010 Wikipedia revision 1331649111, retrieved 2026-11-19 · retrieved 2026-11-18 · rev 1331649111
Cite this reference
MLA "Systems and software engineering — Vocabulary ISO/IEC/IEEE 24765:2010(E) , IEEE, Dec 15, 2010 Wikipedia revision 1331649111, retrieved 2026-11-19." Systems and software engineering — Vocabulary ISO/IEC/IEEE 24765:2010(E) , IEEE, Dec 15, 2010 Wikipedia revision 1331649. 2026-11-18. https://en.wikipedia.org/w/index.php?oldid=1331649111. Accessed 24 November 2026.
Chicago "Systems and software engineering — Vocabulary ISO/IEC/IEEE 24765:2010(E) , IEEE, Dec 15, 2010 Wikipedia revision 1331649111, retrieved 2026-11-19." Systems and software engineering — Vocabulary ISO/IEC/IEEE 24765:2010(E) , IEEE, Dec 15, 2010 Wikipedia revision 1331649. 2026-11-18. https://en.wikipedia.org/w/index.php?oldid=1331649111.
APA Systems and software engineering — Vocabulary ISO/IEC/IEEE 24765:2010(E) , IEEE, Dec 15, 2010 Wikipedia revision 1331649. (2026). Systems and software engineering — Vocabulary ISO/IEC/IEEE 24765:2010(E) , IEEE, Dec 15, 2010 Wikipedia revision 1331649111, retrieved 2026-11-19. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1331649111
Cite this article
MLA
"Binding time." encyclopegia.org, 2026, https://encyclopegia.org/wiki/binding-time. Accessed 24 November 2026.
Chicago
"Binding time." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/binding-time.
APA
encyclopegia.org. (2026). Binding time. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/binding-time
Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON