Skip to content

Why we use 'Static' in class declaration statement

Swapnil Palande

Asked Jun 20, 2006, 5:48 AM EDT1 answer
Share
LinkedInX
Hi all,

Why so we use 'Static' keyword in class declaration statement?

What is meaning of it?

Thanks regards,

Swapnil.

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0

    From MSDN:

    A class can be declared static, indicating that it contains only static members. It is not possible to create instances of a static class using the new keyword. Static classes are loaded automatically by the .NET Framework common language runtime (CLR) when the program or namespace containing the class is loaded.

    http://msdn2.microsoft.com/en-us/library/79b3xss3.aspx

    I hope this helps.

    0