Can we have a private constructor in a static class?
c#
Solution
Static classes cannot have instance constructors
http://msdn.microsoft.com/en-us/library/79b3xss3.aspx
The following list provides the main features of a static class:
- Contains only static members.
- Cannot be instantiated.
- Is sealed.
- Cannot contain Instance Constructors.
Problem
I have a doubt that a static class can contain a private constructor.