33. C# – Static



33. C# – Static

33. C# - Static

When using the #static keyword it means that class cannot be instantiated using the new keyword. So, the properties, variables, methods etc can be accessed by directly using the classname instead of creating a new #object.

Also, static classes are well known to be used to create #extension methods…

#class #properties #variables #methods #csharp #dotnet #dotnetcore #learnprogramming #learndotnet #elearning

Comments are closed.