Mohammed Rafi Khan

Mohammed Rafi Khan

  • NA
  • 349
  • 34.5k

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

Dec 8 2019 8:29 AM
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)