why i ned to use static classes
for example i set all classes to public when i need to set classes to static
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Manoj BhoirPosted Apr 26, 2015, 10:06 AM
Making a class static just prevents people from trying to make an instance of it. If all your class has are static members it is a good practice to make the class itself static.
Fore more information about static class please see these links :
Static Classes and Static Class Members (C# Programming Guide)
https://msdn.microsoft.com/en-us/library/79b3xss3.aspx
Static Keyword Demystified
http://www.codeproject.com/Articles/15269/Static-Keyword-Demystified
Abhineet SrivastavaPosted Apr 26, 2015, 1:03 PM