摘要:
转自:http://www.uml.org.cn/mxdx/200912232.asp类的设计原则2009-12-23 来源:lifevv.com开闭原则Software entities (classes, modules, function, etc.) should be open for extension, but closed for modification.软件实体(模块,类,方法等)应该对扩展开放,对修改关闭。开闭原则(OCP:Open-Closed Principle)是指在进行面向对象设计(OOD:Object Oriented Design)中,设计类或其他程序单位时, 阅读全文
posted @ 2012-06-25 17:20
冷秋寒水
阅读(201)
评论(0)
推荐(0)
2012年6月25日