Why we use static void main in C#?

Why is the Main() method use in C# static? The Main method states what the class does when executed and instantiates other objects and variables. A main method is static since it is available to run when the C# program starts . It is the entry point of the program and runs without even creating an instance of the class.

Sizin İçin Seçtik  Main nedir C#?

Leave a Reply

Your email address will not be published. Required fields are marked *