Is variables in the main methods are 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 9:13 UTC
Read the original article Hit count: 144

Filed under:
|
|

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

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

}

Here Main method is static, but I hav'nt declared t1 as static. Is it implicitly static.

© Stack Overflow or respective owner

Related posts about .NET

Related posts about oop