2. Contents
• What is MVP?
• MVC vs MVP
• Benefit of MVC & MVP
• Role M, V, P/C
• Reference
3. - View gets notified of any change in
model’s state
- View knows nothing about the model
4. • Readable and maintainable code
• Modular code which provides high degree of decoupling
• More testable code
• Code which is fun to work with
Benefit of MVC and MVP:
5.
6. Model?View?Controller/Presenter?
Class
Model
stores system’s state (whether
this state persistent or not),
APIs, caching data, managing
databases and so on
View
handles input-output from/to the
user
Controller/Presenter
encapsulates the logical
functionality of the system