I am trying to understands MVP using Winforms.
I found this example. Why do UserModel and UserView need to implement the IUserModel and IUserView interfaces ?
8
Interfaces are required in good quality implementations of MVP for the same reason they are required in all good “OO” designs:
- They help reduce coupling
- They discourage inheritance (which further reduces coupling)
- Arguably most importantly, they simplify unit test writing
1