Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

use of static variables in real world??

Status
Not open for further replies.

beginner123

Programmer
Dec 21, 2000
3
0
0
US
1)what is the use of static variables in real world
2)what is early binding and late binding
 
I could just make a response only for your first question.
Static variables have two different interpretations.
As a simple variable which does not belong to any classes, it means that this variable "lives" during the whole execution, but it is accessible only int the block code it is declared.
The other way is a static variable which is a class attribute, in this case it means that this attribute is a class member, it does not belong to objects.
 
2)what is early binding and late binding

There is more than one context for the concept of early/late binding, here is one.

Early means that the compiler is linking types and functions and object references when the binary file is being produced (compile and link).

Late means that the linkage occurs dynamically at runtime.

Hope this helps
-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top