Need help understanding the MVC design pattern
- by Doron Sinai
Hi,
I am trying to find a ood example of MVC design pattern in java.
This is what i understood from reading about it, please correct me if I am wrong:
I have the Model part which is the logic behind the program, let's say if we have a phonebook, so adding and removing contact from the Array will be the model.
The Gui is the view and it contains buttons that upon clicking them, the model is changing.
What I am trying to undersand what is the controller part, is it the ActionListeners? how to you seperate those modules in practice.
thank you