everything has to be inside a class including main method alsoso it is always inside a class
It is complete Object-oriented language hence every function even main should be declared in class.....
Main is the entry point of the program
C# Corner. All contents are copyright of their authors.