Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

when running  RSS feed

 
corey williams
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have a quick question when i try to compile or run a program do i have to call the class where the main method is stored
 
Keith Lynn
Ranch Hand
Posts: 2409
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes the first point of entry of an application is the main method.
 
corey williams
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks i was a litle confused by that
 
Campbell Ritchie
Marshal
Posts: 55735
163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The reason is historical; it is because the principal entry point to a program in C is called the main method.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!