How to access static methods or static variables from within static and non-static class?

 Posted by vishalneeraj-24503 on 1/23/2014 | Category: C# Interview questions | Views: 636 | Points: 40
Answer:

We access static methods or static variables from within static and non-static class with class name directly.Means no need to create object of class and access method.

Class_name.Method_name();

Class_name.Variable_name();


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response