Question

differentiate between static and dynamic binding scoping

differentiate between static and dynamic binding scoping

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Scoping is nothing but the boundries of a particular variable or particular thing or constants.

For suppose you must have heard about local scope and global scope, which in detail global scope means the variable which is declared globally can be used across any part of the program. And the variable which is declared inside a method or function then it is called as local variable to that method or function, which cannot be accessed outside that function or method.


Now coming to binding, it is nothing but the compatibility and assosciation of the function definition and call to that function in the program.

There are two types of bindings. Namely static binding scope and Dynamic binding scope.

Static Binding is also known as Early Binding.

Dynamic binding is also Known as Late Binding.

Static binding is nothing but the program will knows its behaviour at the compile time. Which means the compiler will get to know which function is to be called or which object is to be created at its compile time in the case of Static binding scope.
Since the behaviour is known at the compile time, it has high efficiency.

Dynamic binding is nothing but the program will knows its behaviour at the run time which means it is unpredicted at the compile time by the compiler.
Since the behaviour is not known till the run time, it has low efficiency compared to Static binding scope.

Time required for the program to produce results will be less in case of static binding scope bacause of its Efficiency.

Add a comment
Know the answer?
Add Answer to:
differentiate between static and dynamic binding scoping
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT