mardi 4 juin 2019

What is the most common design pattern to share data between instances(=two classes)?

I usually use the singleton pattern and add getter/setter in there to share data between two classes. But I am not sure this is the most common method and efficient method. If you know the more good method, please let me know.

Aucun commentaire:

Enregistrer un commentaire