博客首页
注册
建议与交流
排行榜
加入友情链接
推荐
投诉
搜索:
帮助
小宝--读书笔记
精修内功!
zieckey.cublog.cn
管理博客
发表文章
留言
收藏夹
· 相关BLOG
· 好友BLOG
· 常去的地方
博客圈
音乐
相册
· 同学相片
· 西藏之行
· 我的大学
文章
· OS Linux
}
· Command
· Install && Usage
· Soft Install && Usage
· Kernel
· Solaris
· Other
· C/C++
}
· Linux C/C++
· QT Embedded
· Standard C/C++
· Win32 C/C++
· E680
· Java
}
· J2ME
· J2SE
· J2EE
· Software Engineering
}
· Class Design Principle
· Arithmetic Data Structure
· Design Patterns
· Database
· Other
}
· Python
· Windows
· Networks
· Assemble
· Video && Image
· Hardware Design
· Other
· 人生如梦
}
· 修身养性
· 生活
· 音乐电影
· 职业生涯
· 搞笑
· 其它
首页
关于作者
思路决定出路,态度决定高度!
||
<<
>>
||
我的分类
文章列表 - Class Design Principle
Dependency Inversion Principle (DIP) - OO设计的依赖倒置原则
<h2><span id="description">A. High level modules should not depend upon low level modules. Both should depend upon abstractions.<br>B. Abstractions should not depend upon details. Details should depend upon abstractions.</span></h2><div id="fileContent"><br>Robert C. Martin氏为我们总结了在面向对象的设计(OOD)中应该遵循的原则,这些原则被称为“Principles of OOD”,关于“Principles of OOD”的相关文章可以从<a href="http://www.objectmentor.com/" target="blank">Object Menter</a><img src="http://www.l……
查看全文
发表于:2008-06-24 ┆
阅读(239)
┆
评论(0)
Interface Segregation Principle (ISP) - OO设计的接口分隔原
<h2><span id="description">Clients should not be forced to depend upon interfaces that they do not use.</span></h2><div id="fileContent"><br><div id="tf_edit_html_title" class="tf_edit_html_title">前言</div>Robert C. Martin氏为我们总结了在面向对象的设计(OOD)中应该遵循的原则,这些原则被称为“Principles of OOD”,关于“Principles of OOD”的相关文章可以从<a href="http://www.objectmentor.com/" target="blank">Object Menter</a><img src="http://www.lifevv.com/images/richedit/simages/edit_arro……
查看全文
发表于:2008-06-24 ┆
阅读(230)
┆
评论(0)
Liskov Substitution Principle (LSP) - OO设计的里氏替换原则
<h2><span id="description">Functions that use pointers or references to base classes must be able to use objects of derived classes without knowing it.</span></h2><div id="fileContent"><br>Robert C. Martin氏为我们总结了在面向对象的设计(OOD)中应该遵循的原则,这些原则被称为“Principles of OOD”,关于“Principles of OOD”的相关文章可以从<a href="http://www.objectmentor.com/" target="blank">Object Menter</a><img src="http://www.lifevv.com/images/richedit/simages/edit_arrow6.gif" border="0">得到。<……
查看全文
发表于:2008-06-24 ┆
阅读(309)
┆
评论(0)
The Open-Closed Principle (OCP) - OO设计的开闭原则
<h2><span id="description">Software entities (classes, modules, function, etc.) should be open for extension, but closed for modification.<br>软件实体(模块,类,方法等)应该对扩展开放,对修改关闭。</span></h2><div id="fileContent"><br>开闭原则(OCP:Open-Closed Principle)是指在进行面向对象设计(OOD:Object Oriented Design)中,设计类或其他程序单位时,应该遵循:<br>- <strong>对扩展开放(open)</strong><br>- <strong>对修改关闭(closed)</strong><br>的设计原则。<br><br>开闭原则是判断面向对象设计是……
查看全文
发表于:2008-06-23 ┆
阅读(239)
┆
评论(0)
Single Responsibility Principle (SRP) - OO设计的单一职责原
<h2><span id="description">There should never be more than one reason for a class to change.</span></h2><div id="fileContent"><br><div id="tf_edit_html_title" class="tf_edit_html_title">前言</div>Robert C. Martin氏为我们总结了在面向对象的设计(OOD)中应该遵循的原则,这些原则被称为“Principles of OOD”,关于“Principles of OOD”的相关文章可以从<a href="http://www.objectmentor.com/" target="blank">Object Menter</a><img src="http://www.lifevv.com/images/richedit/simages/edit_arrow6.gif" border="0">……
查看全文
发表于:2008-06-23 ┆
阅读(234)
┆
评论(0)