Private Constructor in C#
In this article, you will see the details about Private Constructor.
Private Constructor is a special instance constructor, and it is useful in classes that contain only static members.
If a class contains one or more private constructors and no public constructors, then the other classes are not allowed to create an instance for that particular class except nested classes.
0 comments:
Post a Comment