开放关闭原则(Open Close Principle OCP) 

 

Software entities like classes,modules and functions should be open for extension but closed for modifications.

 

一个软件实体如类、模块和函数应该对扩展开放,对修改关闭。

相关文章: