I was going through the singleton design pattern, I have a query regarding singleton pattern. -why there is need to create only one object for a class and what is the actual use of using singleton pattern? -what are the pros and cons for using singleton class?
Aucun commentaire:
Enregistrer un commentaire