jeudi 6 décembre 2018

Whats the advantage of having only one instance of a class in singleton pattern?

The goal of the singleton pattern is to ensure only one instance of a class is alive at any one time.But what is the advantage of ensuring there will be only one instance, what if there are multiple instances?

Aucun commentaire:

Enregistrer un commentaire