Question: A class can have many mains, how does this work?Answer: Only one of them is run, that is the one marked (public) static, e.g:public static void Main(string[] args) { // // TODO: Add code to start application here // } private void Main(string[] args, int i) { } |
Is it helpful?
Yes
No
Most helpful rated by users:
- Name 10 C# keywords.
- What is public accessibility?
- .NET Stands for?
- What is private accessibility?
- What is protected accessibility?