Timeline for answer to Why a static main method in Java and C#, rather than a constructor? by Daniel R Hicks
Current License: CC BY-SA 3.0
Post Revisions
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 12, 2012 at 1:49 | history | edited | Daniel R Hicks | CC BY-SA 3.0 |
added 50 characters in body
|
| Jul 12, 2012 at 1:47 | comment | added | Daniel R Hicks | No user object needs to be created. The object constructor is not executed. The API is blazingly simple. And it's the easiest to understand. | |
| Jul 10, 2012 at 21:42 | comment | added | Voo | The amount of work necessary to instantiate a class from C code is pretty much identical to calling a static method.. You even have to do the same checks (does the class exist? fine, does it have a public constructor with the right signature? fine then go ahead). | |
| Jul 10, 2012 at 21:38 | comment | added | Konrad Rudolph | As I said, I’m not convinced by that at all. Objects do get instantiated before, and code gets executed before. It’d need a quote from one of the original developers to convince me that this was the reason. | |
| Jul 10, 2012 at 21:35 | history | answered | Daniel R Hicks | CC BY-SA 3.0 |