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


Please Help Members By Posting Answers For Below Questions

Explain the difference between access specifier and access modifier in c#?

491


Is is possible to force garbage collector to run?

518


what is a constructor? What is a destructor?

518


Why we need get set property in c#?

532


what is generics? can u explain 5 to 6 examples on generics that covers class,method,structure,list,delegates?

1494






What is the use of console application in c#?

464


Why dictionary is faster than list?

547


What is difference between a function and a method?

483


What is the difference between dynamic type variables and object type variables in c#?

477


Why do we use parameters in c#?

489


What is parameter c#?

526


Explain static class members.

561


What do you understand by the terms datareader object and dataset object?

523


what is be the overhead, if i use binary transmission. and will it be sent using xml text or how ?

1680


What method is used to sort the elements of the array in descending order?

560