Interface segregation: payment methods
Give each client an interface with only the methods it calls, so no implementation has to fake the rest.
Level Intermediate
What you will see
- Four jobs, one interface
- Methods nobody calls
- One interface per client
- One class, several roles
- How small is too small
Before / after
Base: interface-segregation-base-tsView the diff