What is a private constructor? where will you use it?

Answer Posted / sri

we can declare the constructor private ,it is called
private constructor.

Is This Answer Correct ?    3 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the three types of predicates?

447


What are jump statements in c#?

495


Can a class be protected in c#?

481


What is desktop example?

481


What is meant by unicode characters?

557






What is lock statement in C#?

541


Can properties be overloaded in c#?

541


Why ienumerable is used in c#?

465


Explain the role of the datareader class in ado.net connections?

455


Can we have static indexer in c#?

481


What is the difference between “dispose” and “finalize” variables in c#?

478


How many destructors can a class have?

581


Explain the difference between a struct and a class?

492


How string definitions will prevent escaping on backslashes in C#?

515


What is the do while loop code?

482