ISP

LorenzB
Windoof-User
Windoof-User
Beiträge: 28
Registriert: 1. Sep 2015 12:27

ISP

Beitrag von LorenzB » 10. Feb 2018 16:51

Hello
Segregating interfaces should not be overdone!
If you overdue the application of the interface segregation principle, you will end up with 2n-1 interfaces
for a class with n methods.
why is it 2n-1? I think 2n-1=1²+2²+...+n².

Thank you

Zurück zu „Archiv“