Design Principle - Simple Responsibility Principle

Definition In short, classes should have a single responsibility and thus only a single reason to change. 不要存在多于一个导致类变更的原因,一个类、接口、方法只负责一项职责。 The single responsibility principle (SRP) states that every
相关文章
相关标签/搜索