Monday, September 10, 2012

DIFFERENCE BETWEEN STATIC MEMBERS AND NON-STATIC MEMBERS IN ASP.NET



S.No
Static Members
Non-static Members
1
How they are binded ?
These members are binded to the class definition itself.
How they are binded ?
These members are binded to the object defined for the class.
2
When they are loaded ?
These members will be loaded into memory when ever the class has been loaded .
When they are loaded ?
These members will be loaded into memory every time a new object is defined for the class.
3
Where they are referenced ?
These members are referenced with the class name only.
Where they are referenced ?
These members are referenced with object definition only.

No comments:

Post a Comment