- public :The keyword public is an access modifier that tells the C# compiler that the Main method is accessible by anyone.
- static :The keyword static declares that the Main method is a global one and can be called without creating an instance of the class. The compiler stores the address of the method as the entry point and uses this information to begin execution before any objects are created.
- void : The keyword void is a type modifier that states that the Main method does not return any value.
29 June 2013
What is the difference between public, static and void?
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment