I have read the post “How I explained OOD to my wife”,i am deeply impressed by the author’s intelligence and knowledge,by the word choice he used,the sentence structure he made,he explained the OOD from real life perspective and discussed in a conservational manner.it is so good that i don’t know which word i can use to praise this post,maybe splendid or any words that can be used to praise things,i have recommended this post to some of my friends.

following are a summary of this post.

there are some basic principle of Object Oriented Design (OOD),which are abbreviated as SOLID

  • S = Single Responsibility Principle
  • O =Opened Closed Principle
  • L = Liscov Substitution Principle
  • I = Interface Segregation Principle
  • D = Dependency Inversion Principle

As we know the descriptions above are abstract and hard to understand,let me translate them to software language(exactly,i just copy from the original post,not translate).

Single Responsibility Principle

"There should never be more than one reason for a class to change."

Opened Closed Principle

"Software entities (classes, modules, functions, etc.) should be open for extension, but closed for modification."

Liscov Substitution Principle

"Subtypes must be substitutable for their base types."

Interface Segregation Principle

"Clients should not be forced to depend upon interfaces that they do not use."

Dependency Inversion Principle

"High level modules should not depend upon low level modules. Rather, both should depend upon abstractions."

A summary of the post “How I explained OOD to my wife相关推荐

  1. 【OOD】How I explained OOD to my wife

    同系列文章How I explained Design Patterns to my wife: Part 1可移步至 http://blog.csdn.net/WHUZXQ/article/deta ...

  2. 如何向妻子解释面向对象设计(OOD)

    前言 此文译自CodeProject上<How I explained OOD to my wife>一文,该文章在Top Articles上排名第3,读了之后觉得非常好,就翻译出来,供不 ...

  3. 如何向妻子解释OOD

    为什么80%的码农都做不了架构师?>>>    前言 此文译自CodeProject上<How I explained OOD to my wife >一文,该文章在To ...

  4. [转载]-如何向妻子解释OOD

    翻译原文:http://www.cnblogs.com/niyw/archive/2011/01/25/1940603.html 如何向妻子解释OOD 前言 此文译自CodeProject上<H ...

  5. 如何向妻子解释OOD(转)

    前言 此文译自CodeProject上<How I explained OOD to my wife>一文,该文章在Top Articles上排名第3,读了之后觉得非常好,就翻译出来,供不 ...

  6. 我所理解的SOLID原则

    S.O.L.I.D 是面向对象设计(OOD)和面向对象编程(OOP)中的几个重要编码原则(Programming Priciple)的首字母缩写. 面向对象设计的原则 SRP     The Sing ...

  7. SOLID原则 【转】

    S.O.L.I.D 是面向对象设计(OOD)和面向对象编程(OOP)中的几个重要编码原则(Programming Priciple)的首字母缩写. 面向对象设计的原则 SRP  The Single ...

  8. OOD: 我所理解的SOLID原则

    S.O.L.I.D 是面向对象设计(OOD)和面向对象编程(OOP)中的几个重要编码原则(Programming Priciple)的首字母缩写. 面向对象设计的原则 SRP  The Single ...

  9. S.O.L.I.D 是面向对象设计(OOD)和面向对象编程(OOP)中的几个重要编码原则

    注:以下图片均来自<如何向妻子解释OOD>译文链接:http://www.cnblogs.com/niyw/archive/2011/01/25/1940603.html <How ...

最新文章

  1. 数据库和缓存一致性的问题
  2. 6 HBase java API访问HBase数据库
  3. php 两个二维数组怎么去重,php 二维数组怎么不去重合并
  4. viwer连接不到服务器 vnc_vnc viewer连不上怎么办 vnc viewer连不上的解决方法
  5. Adobe Acrobat Pro DC二次激活失败的解决途径
  6. Python基础教程 第六章 学习笔记
  7. AtCoder Grand Contest 016
  8. 大数据推荐系统(4)推荐算法
  9. automation 服务器不能创建对象
  10. 导出手机QQ聊天记录到电脑
  11. 全国法院名录json
  12. 如何基于 ZEGO SDK 实现 Android 变声/混响/立体声
  13. 【Oracle】存储过程 遍历树 举例emp表的树状结构
  14. 计算机网络: 同步传输和异步传输(理解)
  15. 计算机体系结构:记分牌算法(完全弄懂!)
  16. 为什么Rust语言正在兴起
  17. 用blockly制作诗词学习游戏
  18. ubuntu程序莫名崩溃显示killed,程序闪退,排除OOM
  19. vue H5(移动端)双指放大图片,单指拖动图片,等图片操作,使用viewerjs
  20. 关于Surface键盘突然失灵的解决方案

热门文章

  1. JavaScript学习05 定时器
  2. 在word 2010中采用EndNote X7插入引用
  3. [导入]c#中的关于string的转换的问题
  4. 在腾讯云轻量云服务器上搭建mysql数据库
  5. qt中new与delete使用示例
  6. DataTable转成字符串复制到txt文本的小例子
  7. 在C++里,有两种方法创建对象:
  8. Android—EventBus使用与源码分析
  9. java第二周学习总结
  10. uni-app实现上拉加载更多