Microsoft .NET Interview Questions and Answers
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) { } |
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
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?