What is a private constructor? where will you use it?
Answer Posted / nitesh
When we want to control the object instantiation
or trying to implement singleton pattern
| Is This Answer Correct ? | 10 Yes | 2 No |
Post New Answer View All Answers
What is stringwriter c#?
Does console.writeline() stop printing when it reaches a null character within a string?
Is stringbuilder better than string?
What is the difference between console and windows application?
What is icollection in c#?
List the difference between the virtual method and the abstract method?
How does the clr work?
how to prevent a class from being inherited in c#.net?
Define satellite Assembly in .NET?
What is the difference between paramaterized constructor and copy constructor?
What is literal control
List the difference between interface and abstract class?
What is a deadlock lock?
Is a games console a computer?
What is new method in c#?