Learn now: https://edu.csdn.net/course/play/28942/403591?utm_source=blogtoedu
- Use multiple specialized interfaces instead of using a single general interface; try to refine the interface and have as few methods as possible
- Achieve high cohesion, low coupling, improve readability, scalability, and maintainability
- For example: If there is eating, drinking and sleeping in an interface, the practical implementation class does not need to [sleep], so if eating and drinking and sleeping are all a single interface, the implementation class can inherit and implement different interfaces according to their needs
- Feels similar to single responsibility