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
What are satellite assemblies?
State the top.NET class that everything is derived from?
How do you serialize an object?
what happens if you inherit multiple interfaces and they have conflicting method names?
What does return do in for loop?
What is an actual parameter?
Can we create instance of private class in c#?
What is the namespcae generally given to the webpage of the .NET Framework ?
What is event delegate in c#?
how dot net compiled code will become platform independent?
Can fields inside a class be virtual?
Can constructor have return type c#?
If a class derives from another class, will the derived class automatically contain all the public, protected, and internal members of the base class?
What is the relation between classes and objects?
Explain more on CLR