单一职责原则 ( Single Responsibility Principle SRP )原则的核心含意是:只能让一个类有且仅有一个职责。这也是 单一职责原则 的命名含义。
基于10个网页-相关网页
Chapter 10 focuses heavily on The Single Responsibility Principle (SRP), a concept from Martin's previous work, Agile Software Development: Principles, Patterns, and Practices.
第十章主要讲述了单一职责原则(SRP),这个原则在Martin的另一本书《敏捷软件开发:原则,模式与实践》中也曾讨论过。
The Single Responsibility Principle (SRP)2 states that a class or module should have one, and only one, reason to change.
单一权责原则认为,类或模块应有且只有一条加以修改的理由。
应用推荐