Ein paar Theoriefragen



  • krümelkacker schrieb:

    "Späte Bindung" (late binding) ist ein OOP-Begriff und bezieht sich im Falle von C++ auf virtuelle Funktionen.

    hm..?

    http://en.wikipedia.org/wiki/Late_binding schrieb:

    Late binding is often confused with dynamic dispatch, but there are significant differences. With early binding the compiler statically verifies that there are one or more methods with the appropriate method name and signature. This is usually stored in the compiled program as an offer in a virtual method table and is very efficient. With late binding the compiler doesn’t have enough information to verify the method even exists, let along bind to its particular slot on the v-table. Instead the method is looked up by name at runtime.



  • > Late binding is often confused with dynamic dispatch [...] Instead the method is looked up by name at runtime.

    Aha. Die Definition kannte ich nicht. Danke Dir für den Hinweis!

    Dann macht die Frage in der Klausur natürlich noch weniger Sinn, zumindest wenn sie sich auf C++ bezieht.



  • "Definition"? Das ist nur Wikipedia. Late Binding benutzt der eine so und der andere so, ich würd das nicht so eng sehen.



  • hmmmmmmmm schrieb:

    krümelkacker schrieb:

    "Späte Bindung" (late binding) ist ein OOP-Begriff und bezieht sich im Falle von C++ auf virtuelle Funktionen.

    hm..?

    Wikipedia stellt die allgemeinen Begriffserklärung, nicht aber die Interpretation in bestimmten Kontexten dar. Da C++ vom Standard her keine DLLs kennt (geschweige den das DLLs irgendwie standardisiert wären), wird man den Begriff hier wohl kaum auf eben diese anwenden.


Anmelden zum Antworten