33. C# - Static

Опубликовано: 30 Сентябрь 2024
на канале: Ervis Trupja
15,816
290

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