Are variables in the main methods static.

Posted by vaibhav on Stack Overflow See other posts from Stack Overflow or by vaibhav
Published on 2010-04-16T09:10:11Z Indexed on 2010/04/16 23:53 UTC
Read the original article Hit count: 218

Filed under:
|
|
|

Its a well known fact that a static method can work only on static members.

public static void Main()
{
    Test t1 = new Test();
}

Here the Main method is static, but I haven't declared t1 as static. Is it implicitly static?

© Stack Overflow or respective owner

Related posts about .NET

Related posts about oop