SOLID principle – ISP
This article introduces one of solid principles which is ISP (Interface Segregation Principle). It is better to build a small-sized interface than a heavy interface as a small-size interface is easier to refactor and decouple. Too many is better than too few For example, you have IAnimal interface which has three methods(eat, move and sleep) […]