ITPub博客

首页 > Linux操作系统 > Linux操作系统 > open-closed principle

open-closed principle

原创 Linux操作系统 作者:ipqiaojj 时间:2009-03-30 20:32:01 0 删除 编辑
the basic object-oriented open-closed principle:
The open-closed principle states that a software module should be:
 Open for extension — It should be possible to alter the behavior. of a module or add
new features to the module functionality.
 Closed for modification — Such a module should not allow its code to be modified.
In a nutshell, the open-closed principle helps in designing software modules whose
functionality can be extended without having to modify the existing code.

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/16792402/viewspace-582239/,如需转载,请注明出处,否则将追究法律责任。

上一篇: abstraction
下一篇: 客观的看待问题
请登录后发表评论 登录
全部评论

注册时间:2009-02-22

  • 博文量
    140
  • 访问量
    74825