Saturday, March 5, 2011

Static Keyword in C#

Static Keyword.

  1. A static method can access only static fields.
  2. A static method cannot access non-static fields.
  3. A static method cannot be called using object of a class.
  4. A static method can be called using Class name.
  5. Static fields can be used using Class Name. 

1 comment:

  1. Good Zinnia

    I like your post . please add some example to clear or demonstrate better.