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 standard types does c# use?
If dll and exe files are same it means you can deploy both the files in gac?
What is the use of xmlserializer?
Why is static constructor called first?
What is the difference between string and string in c#?
What does dbml stand for?
What is the base class from which all value types are derived?
How do I do implement a trace and assert?
Does c# support a variable number of arguments?
Describe the process of “exception handling implementation” in c#?
What is a static class in c#?
What is yield break in c#?
Which technology is best for desktop application?
What are the types of delegates in c#?
Explain about Error handling and how this is done