what is Static?

 Posted by Syedshakeer on 2/20/2009 | Category: C# Interview questions | Views: 5513
Answer:

Static:
1)A Static memberdata or a memberfunction can be called without the help of an object.
2)Static members can be called with the help of Classname.

Syntax: classname.staticmember
3)'this ' keyword cannot be used inside a static memberfunction
4)Nonstatic members cannot be used inside a static memberfunction


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response