What is use of private constructor in C# ?
If a class contains only static members and isn’t intended to be instantiated, adding an empty private instance constructor will prevent instantiation.
Subscribe to:
Post Comments (Atom)
This site will help you clear technical interviews
| ||
| ||
No comments:
Post a Comment