Why the main method is declared as static ?
- static void Main(string[] args)
- {
-
- }
The main method is declared with Static keyword.
Since the main method is the parent method and starting point of an application, it should be executed without creating an object for it. So, C# automatically puts static keyword in the program.