Monday, February 16, 2009

What "STATIC" means in C#

Hi folks,

Its been a quite long time where i haven't posted o my blog.
For the last few months, I haven't find time to even read my mails.

Lets start with static word in C# language. (As I faced in some of the interviews.)

First I start with msdn says -
"The static modifier can be used with classes, fields, methods, properties, operators, events, and constructors, but it cannot be used with indexers, destructors, or types other than classes. The static modifier on a class means that the class cannot be instantiated, and that all of its members are static. A static member has one version regardless of how many instances of its enclosing type are created."


And another good article By Rajesh here