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
Why can't we use a static class instead of singleton?
What is difference between method overriding and method overloading?
How big is a float?
How do I type a whitespace character?
How many bytes is a char c#?
Can we instantiate abstract class in c#?
Is there regular expression (regex) support available to c# developers?
Why do we need interfaces in c#?
What's different between c# and c/c++?
Explain about ODP.net
What Is An Interface Class?
In which way a two-dimensional array declared in C#?
Which program construct must return a value?
What is difference between write and writeline?
Explain nullable types in c#?