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
Suppose two interfaces have same method, so how will you implement these methods in derive class?
What are delegates?
What is c# best for?
Compare and contrast between the System.Array.CopyTo() and Clone()?
What are data types with examples?
When was .net linq added?
How to achieve polymorphism in c#?
How do I do implement a trace?
Can a static class contain non static members?
What is Wrapper class in dot net?
Is datetime value type c#?
What does f mean in c#?
Why extension method is static?
For methods inside the interface why can’t you specify the accessibility modifier?
What are tuples c#?