4
Answers

what possible in static class and not in non-static class C#

what possible in a static class and not in non-static class or vice versa in C#, for example
 
 static class
 MyProgram.CallFunction();
 
non-static class 
MyProgram obj =new MyProgram();
obj.CallFunction();
 
in the above example without creating the instance we can able to call static class members so this is basic.
I'm looking for a difference which is possible and not possible in static and non-static 
 
 
Answers (4)