Can we have private constructor in our class file. When we
are trying to create instance for the class will it create
or throw error regarding that?
Answer Posted / balamurugan
we can create private constructor.it wont throw any
execption..but we cant create object for that class
| Is This Answer Correct ? | 3 Yes | 3 No |
Post New Answer View All Answers
When would you use generics in your code c#?
How do I declare a pure virtual function in c#?
What is array c#?
Is there an equivalent of exit() for quitting a c# .net application?
How to parse a date time string?
What is an int c#?
What is datagridview in c#?
What is streamreader/streamwriter class?
Why do we use delegates in c#?
Explain metadata in c#.
Which is faster iqueryable or ienumerable?
What are delegates and why are they required?
What is difference between a type and class?
Is multiple inheritance possible in c#?
What is sqlcommand in c#?