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 object array in c#?
Is c# and c same?
What is difference between first and firstordefault?
Will the following code compile and run?
Explain inheritance in c#?
What is an iqueryable in c#?
What is the use of convert toint32 in c#?
what is IDisposal interface
List down the commonly used types of exceptions in .net
What is delegates in c# and uses of delegates?
How is a string immutable?
What is strong name in c# and how can we use it?
What is static noise?
How do I create a dbml file?
What will a loop recorder show?