Static keyword in C#:-
static is a modifier in C# which is applicable for the following:
- Classes
- Variables
- Methods
- Constructor
- It is also applicable to properties, event, and operators. To create a static member(class, variable, methods, constructor), precede its declaration with the keyword static. When a member is declared static, it can be accessed with the name of its class directly.