Main() method is a predefined method or user defined method [Resolved]

Posted by Harieswer under C# on 5/25/2015 | Points: 10 | Views : 368 | Status : [Member] | Replies : 4
Main() method is a predefined method or user defined please telme if any one answer this quation




Responses

Posted by: Sheonarayan on: 5/26/2015 [Administrator] HonoraryPlatinum | Points: 50

Up
0
Down

Resolved
Main() method is predefined method understood by C# compiler for console application. In case Main() method is not defined in Program.cs, you can define yourself. However if this interview questions, the correct answer should be Main() method is predefined method.

We can also declare another main method with different parameters (overloading).

Thanks

Regards,
Sheo Narayan
http://www.dotnetfunda.com

Harieswer, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Harieswer on: 5/26/2015 [Member] Starter | Points: 25

Up
0
Down
thanku very much sir



Harieswer, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Amatya on: 5/27/2015 [Member] Silver | Points: 25

Up
0
Down
Its predefined method dude

Feel free to share informations 9731764134
mail Id ' adityagupta200@gmail.com
Thanks

Harieswer, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Rajnilari2015 on: 9/28/2015 [Member] [Microsoft_MVP] [MVP] Platinum | Points: 25

Up
0
Down
Also read the article Main Method in C# ( http://www.codeproject.com/Articles/479467/Main-Method-in-Csharp ) at your convenient time

--
Thanks & Regards,
RNA Team

Harieswer, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response