1
Reply

Why we use static members in C#.NET?

Arun Singh

Arun Singh

Jul 04, 2012
1.2k
0

    A static member is like a regular (instance)method which is not associated with an instance of the class.You can create static member when you don't want to create instance of the class. Generally you creating a Utilities class which has been used at many place so that we can called the method directly without creating instance of the class. Static method always use static variables. example:- http://stackoverflow.com/questions/4124102/whats-a-static-method-in-c

    sushil kumar
    April 30, 2017
    0