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
How we can create an array with non-default values?
What is difference between abstraction and encapsulation in c#?
What does type safety mean?
What is the base class from which all value types are derived?
What is expression tree with example?
What is a generic class?
What is a datacontract?
What is a shared assembly?
what is the equivalent to regsvr32 and regsvr32 /u a file in .net development?
What is using keyword in C#?
Is datetime nullable c#?
How does split work in c#?
What is object type in c#?
Can we inherit partial class in c#?
What is semaphore in c#?