Software Engineering Stack Exchange is a question and answer site for professionals, academics, and students working within the systems development life cycle. It only takes a minute to sign up.
Sign up to join this community
Anybody can ask a question
Anybody can answer
The best answers are voted up and rise to the top
I’m trying to design a solution to manage the communication between the different classes and objects. I found that the mediator design pattern can be a good solution to manage the communication between the classes and I want also to not instantiate them inside the dependant classes that’s why I think that Dependency injection is the suitable option for that.
Is it a good approach to do that or maybe there is another design pattern that can do the stuff easier?