GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — java-interview/readme/design-pattern-principle.md at master · arshalpeter/java-interview

Expand file tree

/

design-pattern-principle.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
19 lines (10 loc) · 603 Bytes
/

design-pattern-principle.md

Copy path

File metadata and controls

19 lines (10 loc) · 603 Bytes
Raw
Copy raw file
Download raw file
Edit and raw actions

设计模式六大原则

  • 概念
    • 单一职责原则

    • 里氏替换原则

    • 依赖倒置原则

    • 接口隔离原则

    • 迪米特法则

    • 开闭原则

单一职责原则告诉我们实现类要职责单一;里氏替换原则告诉我们不要破坏继承体系;依赖倒置原则告诉我们要面向接口编程;接口隔离原则告诉我们在设计接口的时候要精简单一;迪米特法则告诉我们要降低耦合。而开闭原则是总纲,他告诉我们要对扩展开放,对修改关闭。

参考文章

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.