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
Does c# support templates?
What is a verbatim string literal and why do we use it?
What is datagrid c#?
What is difference between throw and throws in c#?
What are the different types of classes in c#?
What is use of a HashTable in .NET?
Can c# inherit multiple classes?
What is visual c# net?
How do I trim a space in c#?
From a versioning perspective, what are the drawbacks of extending an interface as opposed to extending a class?
What the different phase/steps of acquiring a proxy object in webservice?
Is string passed by reference in c#?
What standard types does c# use?
What are methods in C#?
Why delegates are type safe?