jeudi 17 septembre 2015

create a singleton class in java using public constructor

Do I have to use private constructor to make a class singleton ? Is there any other way than using private constructor ? Can't I make a class singleton using public constructor ?

Aucun commentaire:

Enregistrer un commentaire