What is the difference between Early and Late Binding?
问题 What is the difference between early and late binding? 回答1: The short answer is that early (or static) binding refers to compile time binding and late (or dynamic) binding refers to runtime binding (for example when you use reflection). 回答2: In compiled languages, the difference is stark. Java: //early binding: public create_a_foo(*args) { return new Foo(args) } my_foo = create_a_foo(); //late binding: public create_something(Class klass, *args) { klass.new_instance(args) } my_foo = create