I have just Learned about the first Design Pattern in my career :) and Implemented it both using early and Lazy method. While it is Logical to make the Copy Constructor Private but i was told that also make assignment operator private. Since only one instance can be created I think it does not make sense to declare Assignment operator private.
Aucun commentaire:
Enregistrer un commentaire