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
Explain the difference between access specifier and access modifier in c#?
Is is possible to force garbage collector to run?
what is a constructor? What is a destructor?
Why we need get set property in c#?
what is generics? can u explain 5 to 6 examples on generics that covers class,method,structure,list,delegates?
What is the use of console application in c#?
Why dictionary is faster than list?
What is difference between a function and a method?
What is the difference between dynamic type variables and object type variables in c#?
Why do we use parameters in c#?
What is parameter c#?
Explain static class members.
What do you understand by the terms datareader object and dataset object?
what is be the overhead, if i use binary transmission. and will it be sent using xml text or how ?
What method is used to sort the elements of the array in descending order?