What is the difference between static and dynamic binding?

前端 未结 6 652
予麋鹿
予麋鹿 2021-01-31 09:41

Binding times can be classified between two types: static and dynamic. What is the difference between static and dynamic binding?

Could you give a quick example of each

6条回答
  •  闹比i
    闹比i (楼主)
    2021-01-31 10:34

    * Execution time:-* bindings of variables to its values,as well as the binding of variable to particular storage location at the time of execution is called execution time binding.

    IT MAY BE OF TWO TYPES

    1. on entry to a subprogram.
    2. At arbitrary points during execution time.

    COMPILE TIME BINDING :- (TRANSLATION TIME) It consist of the following.

    1. Binding chosen by programmer.
    2. Binding chosen by the translator.
    3. Binding chosen by the loader.

提交回复
热议问题