What is a private constructor? where will you use it?
Answer Posted / dsr
private constructor access only that class. we can't access
in other class.we can use the private constructor in
singleton patteren.
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
Define clr in .net?
What is the importance of closing an ado.net application?
What are different types of classes in c#?
What are jagged arrays used for?
Is and as in c#?
Is visual c# free?
How do I get deterministic finalization in c#?
Is overriding of a function possible in the same class?
What is javascriptserializer c#?
In c#, what will happen if you do not explicitly provide a constructor for a class?
What is c sharp language?
What is the difference between method overriding and method overloading?
Explain a MSIL ? Why is it appreciated by all developers?
Why singleton is sealed?
Does unity require coding?