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
Is post back in c#?
i want the csharp questions&answeres
What is an object and a class?
How big is a float?
What is object type in c#?
What are custom exceptions? Why do we need them?
Why do we use delegates in c#?
Explain how do you debug an asp.net web application?
What is datasource c#?
Can non-default constructors be used with single call sao?
How to use the sreamReader class to read form a text file?
Can enum be null c#?
What are the string functions in c#?
What are tuples c#?
In .NET how can you solve the DLL Hell problem?