jeudi 18 octobre 2018

Can singleton value be changed and assign to null

If I create a singleton and have only one instance of its creation. If I have a forloop where I assign the value of singleton to null and try to access this value in next iteration it would break. Is it advisable to change the value of singleton? If yes, what scenarios?

Aucun commentaire:

Enregistrer un commentaire