• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
掬一束月光
路漫漫其修远兮,吾将上下而求索.
博客园    首页    新随笔    联系   管理    订阅  订阅
2018年6月15日
依赖倒置原则 Dependence Inversion Principle
摘要: High level modules should not depend upon low level modules.Both shoud depend upon abstractions.Abstractions should not depend upon details.Details sh 阅读全文
posted @ 2018-06-15 14:33 掬一束月光 阅读(117) 评论(0) 推荐(0)
里氏替换原则 Liskov Substitution Principle
摘要: If for each object o1 of type S there is an object o2 of type T such that for all programs P defined in terms of T, the behavior of P is unchanged whe 阅读全文
posted @ 2018-06-15 10:18 掬一束月光 阅读(147) 评论(0) 推荐(0)
单一职责原则 Single Responsibility Principle
摘要: 应该有且仅有一个原因引起类的变更. There should never be more than one reason for a class to change。 单一职责适用于接口,类,甚至是方法. 但对于类来说,往往又很难说. 因为受限于实际情况的多种因素影响,往往并不能保证类的单一职责. 阅读全文
posted @ 2018-06-15 09:50 掬一束月光 阅读(165) 评论(0) 推荐(0)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3