I am wondering what are the differences between an observer pattern and MVC. I have some experiences writing MVC program in Java at school, but no experience with observer pattern. (someone told me that observer pattern means I used the Observer class in Java... I don't think that's a good answer.)
Please help me with the following questions, thanks a lottttt.
What is the difference between them? The observer pattern does not uses a separate class for controllers?
What is the relationship between observer pattern and MVC? I heard two different versions.
- First version is that, MVC is an architecture and Observer Pattern is an design pattern. They look similar because MVC uses the observer pattern.
- Second version is that, observer pattern and MVC is two different design patterns.
Is it possible to use only one of them? If so, in what cases, you uses one over the other and why?