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 / vijay rana
we can declare objects in csharp,
but we can not create any instance of this class ,
if we do so it will throw an exception;
| Is This Answer Correct ? | 4 Yes | 4 No |
Post New Answer View All Answers
What is string concatenation?
Can fields inside a class be virtual?
What is the major difference between a custom control and user control?
Why do we use hashtable in c#?
List some of the common data providers for ado.net framework?
what is IComparable
Is string nullable in c#?
What is nullable types in c#?
What is a delegate how is it type safe?
What are the differences between events and delegates in c#?
What is dll in vb.net?
What is strongly typed view?
Why do we use methods in c#?
What is function c#?
What is Asynchronous call and how it can be implemented using delegates?