What is Static Class explain with example

Posted by Gow.Net under C# on 2/29/2012 | Points: 10 | Views : 17688 | Status : [Member] | Replies : 6
What is Static Class with example any one teach me

gowthaman8870226416


Responses

Posted by: Hmanjarawala on: 2/29/2012 [Member] Bronze | Points: 25

Up
0
Down
Static class is a class which contains only static methods.
normally Utility classes are Static class.

Himanshu Manjarawala
Sr. Software Engineer@AutomationAnywhere
http://fieredotnet.wordpress.com/

Gow.Net, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naraayanan on: 3/5/2012 [Member] Starter | Points: 25

Up
0
Down
Hi,
Check this link
http://msdn.microsoft.com/en-us/library/79b3xss3%28v=vs.80%29.aspx

Regards,
Lakshmi Naraayanan.S
http://dotnettechrocks.blogspot.in/
http://abaprocker.blogspot.com/

Gow.Net, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Gow.Net on: 3/5/2012 [Member] Starter | Points: 25

Up
0
Down
sir this Static class which Situation we apply in our real time application

gowthaman8870226416

Gow.Net, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: CGN007 on: 3/5/2012 [Member] Silver | Points: 25

Up
0
Down
Hi,
A static class contains only static members.We can't create instance of that class using new key word.
The members of static class are accessed using the class without an instance of that class.
Eg:
public static class MyStaticClass
{
public static void Test()
{
//code here
}
}


We can call the method as MyStaticClass.Test()
Please check this link foe more details
http://www.codeproject.com/Articles/15269/Static-Keyword-Demystified

Gow.Net, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Hmanjarawala on: 3/6/2012 [Member] Bronze | Points: 25

Up
0
Down
refer this link:
http://programmingincsharp.com/what-is-a-static-class-in-c/

Himanshu Manjarawala
Sr. Software Engineer@AutomationAnywhere
http://fieredotnet.wordpress.com/

Gow.Net, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: CGN007 on: 3/6/2012 [Member] Silver | Points: 25

Up
0
Down
Mark as Answer if its helpful to you,that motivates...

Gow.Net, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response