• Post Reply Bookmark Topic Watch Topic
  • New Topic

What is the class that contains the main method normally called?  RSS feed

 
jon ninpoja
Ranch Hand
Posts: 291
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
just a an example if i was making a soccer league simulator
i have classes
office
team
etc etc

the class that contains the main method and kicks things off...what would you name it?
ie the class that does all the calling,stitches everything together,i know you dont think MainMethod is a good name...what would you call it?

League
Football?

does it really matter?
 
Carey Brown
Saloon Keeper
Posts: 3318
46
Eclipse IDE Firefox Browser Java MySQL Database VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
SoccerLeagueSimulator
That's what you are describing.
 
Paul Clapham
Sheriff
Posts: 22828
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've got one called FixBadLumps. Can you guess what it's supposed to do?
 
jon ninpoja
Ranch Hand
Posts: 291
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok point taken...
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66306
152
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But you are correct that MainMethod is bad, not only because it's generic and meaningless, but it's not a method, so shouldn't be named such.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!