In what situation we used private constructor?
Utilisateur anonyme
when you have to keep data private or secure.In case of connection string of database.you can define connection string in private constructor because it is most secure thing in your any proect.