InterviewSolution
| 1. |
Early Binding Vs Late Binding - Define Them And Explain? |
|
Answer» Early binding allows DEVELOPERS to interact with the object’s properties and methods during coding permits the compiler to check your code. Errors are CAUGHT at compile time. Early binding also RESULTS in faster code LATE binding on the other hand permits defining generic objects which may be bound to different objectsyou could declare myControl as Control without KNOWING which control you will encounter. You could then query the Controls collection and determine which control you are working on using the TypeOf method and branch to the section of your code that provides for that type set ex =CreateObject(“Excel.Application”) Early binding allows developers to interact with the object’s properties and methods during coding permits the compiler to check your code. Errors are caught at compile time. Early binding also results in faster code Late binding on the other hand permits defining generic objects which may be bound to different objectsyou could declare myControl as Control without knowing which control you will encounter. You could then query the Controls collection and determine which control you are working on using the TypeOf method and branch to the section of your code that provides for that type set ex =CreateObject(“Excel.Application”) |
|