·使用开闭原则(Open—closed Principle)与单一责任原则(single Responsibility Principie)提升程序的重利用性。 ·学习如何将OO原则、设计模式及各种开发方法通通整合到OOA&D项目的生命周期里。
基于12个网页-相关网页
与单一责任原则
And the principle of single liability
以上为机器翻译结果,长、整句建议使用 人工翻译 。
你永远也达不到真正的开闭天堂,但是通过严格地遵循与之相关的单一责任原则:一个类应该有并且只有一个更改的理由,你可以非常靠近地接近它。
You'll never reach true Open Closed nirvana, but you can inch much closer by rigorously following the related Single Responsibility Principle: a class should have one, and only one, reason to change
youdao
应用推荐
模块上移
模块下移
不移动