Information générale
Catégorie:
Programmation orienté objet
Titre:
Interface == Early binding?
I'm trying to find "official" definition of early/late binding that mentions interfaces, but no joy. Have a bet to settle.
Let's say your code acts on interface members. You have a factory method that news up some object (say loading the assembly with Assembly.LoadFrom) which implements that interface. Is this early-binding or late-binding?
In a way it's early-binding because you know what interface type you're acting on, but can you say you're early-binding when the assembly and type are loaded at run-time?
Thanks,
Mike
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement