What are the static members in C# programming?

 Posted by Goud.Kv on 9/3/2014 | Category: C# Interview questions | Views: 1497 | Points: 40

Static members are the class members which does not operate on any instance of the type.

In other words, when a method or property declaration includes any static modifier (keyword), then it declares a static member.

Static members can be either data or function members.

Console.Write is an example of static member because it is a static class which contains all the static members.

Asked In: Spotted While Learning | Alert Moderator 

Comments or Responses

Login to post response