Skip to main content
10 events
when toggle format what by license comment
Dec 4, 2014 at 19:27 history closed gnat
CommunityBot
Kilian Foth
Michael Kohne
Duplicate of Why a static main method in Java and C#, rather than a constructor?
Nov 28, 2014 at 11:11 review Close votes
Dec 4, 2014 at 19:27
Nov 28, 2014 at 11:01 comment added sharptooth @gnat: This is a 80th level newbie question - the OP cannot get out of the following dilemma: the book says it has to be static because there's no object yet and he cannot get why they would need an object given that C and C++ don't need an object.
Nov 28, 2014 at 10:59 comment added gnat @sharptooth what I read in the question is, "I couldn't get why it states Java static main necessity reason". As far as I can tell, duplicate question asks about this. If asker intended to ask about something else, they can edit to clarify
Nov 28, 2014 at 10:56 comment added sharptooth @gnat: That question is about why it is a static function and not a non-static function (less newbie). This one is about why it is a member function in the first place.
Nov 28, 2014 at 10:56 history edited gnat CC BY-SA 3.0
spelling, formatting, personal stuff cleanup, tags
Nov 28, 2014 at 10:50 comment added sharptooth That's an example of a very good newbie question.
Nov 28, 2014 at 10:43 answer added sharptooth timeline score: 2
Nov 28, 2014 at 10:42 comment added wam090 Its called Object Oriented for a reason...
Nov 28, 2014 at 10:40 history asked justin CC BY-SA 3.0