Web Log di Adrian Florea

"You know you've achieved perfection in design, not when you have nothing more to add, but when you have nothing more to take away." Antoine de Saint-Exupery
posts - 440, comments - 2715, trackbacks - 3944

My Links

Archives

Post Categories

Image Galleries

.RO Blogs

.RO People

.RO Sites

Blogs

Furls

Links

vinCitori

Main non public?

Mi sto chiedendo qual è la ragione per cui un metodo Main possa avere qualunque accessibilità... Quale sarebbe secondo voi il significato di un metodo Main non public? In Java, a partire dalla versione 1.4 è obbligatorio dichiararlo public.

C# Language Specification, 2nd edition Java Language Specification, 2nd edition
10.1
"Specifically, the execution environment can access the application’s entry point regardless of its declared accessibility and regardless of the declared accessibility of its enclosing type declarations."
12.1.4
"The method main must be declared public, static, and void. It must accept a single argument that is an array of strings"

Print | posted on venerdì 30 luglio 2004 19:31 | Filed Under [ Carillon .NET ]

Powered by:
Powered By Subtext Powered By ASP.NET