+ 3

Is it necessary to define the main method in each class which your creating?

3rd Aug 2016, 12:56 PM
muhsin omary
muhsin omary - avatar
2 odpowiedzi
+ 4
No, you only need one main method per program. One class needs it, no other class in that program does. The main method is just a starting point.
3rd Aug 2016, 1:04 PM
James
James - avatar
0
only the main class
3rd Aug 2016, 1:47 PM
Ian Kahwai
Ian Kahwai - avatar