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 the use of system.environment class in c#.net?
What is an array of arrays called?
Explanation on Generic?
Can an abstract class inherit from another abstract class c#?
Is there throws keyword in c#?
Does a loop recorder have to be removed?
Distinguish between a class and struct?
I want to print "Hello" even before main() is executed. How will you achieve that?
What are the properties of a string class?
How do I create a multilanguage, single-file assembly?
If I have more than one version of one assemblies, then how'll I use old version (how/where to specify version number?)in my application?
Why do we need abstract class?
Can a private virtual method can be overridden?
Why do we need delegates in c#?
What is difference between array and collection in c#?