+ 1

Can there be more than one 'main' method in different classes??

2nd May 2017, 1:12 PM
Ahmed Imtiaz Ferdous
Ahmed Imtiaz Ferdous - avatar
3 Answers
+ 10
Main is a starting/entry point to a code, so whenever you have two of it, either the compiler will accept it as another function or, the compiler will produce an error because it is confused
2nd May 2017, 1:37 PM
Complex
Complex - avatar
+ 10
My pleasure =)
2nd May 2017, 1:55 PM
Complex
Complex - avatar
+ 1
Thanks for the answer. :)
2nd May 2017, 1:54 PM
Ahmed Imtiaz Ferdous
Ahmed Imtiaz Ferdous - avatar