Which among these access specifiers should be used for main() method?
A. private
B. public
C. protected
D. None of the mentioned
Answer:A
Which among these access specifiers should be used for main() method?
A. private B. public C. protected D. None of the mentioned
Explanation: main() method must be specified public as it called by Csharp run time system outside of the program,by default main is private in nature if no access specifier is used.