GithubHelp home page GithubHelp logo

winrunwang / exercisedesignmodel Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wangxp423/exercisedesignmodel

0.0 2.0 0.0 63 KB

Java设计模式全汇总,设计模式的六大原则,博客介绍和示例代码。

Java 100.00%

exercisedesignmodel's Introduction

ExerciseDesignmodel

设计模式六大原则:

单一职责原则
开放-封闭原则
里氏替换原则
依赖倒置原则
接口隔离原则
迪米特法则

设计模式(23种)

下面列一下各种设计模式对应代码的包名:
简单工厂模式 --> simplefactory
工厂方法模式 --> methodfactory
抽象工厂模式 --> abstractfactory
策略模式 --> strategy
装饰模式 --> decorate
代理模式 --> proxy
原型模式 --> prototype
模板方法模式 --> templatemethod
外观模式 --> facade
建造者模式 --> builder
观察者模式 --> observer
状态模式 --> state
适配器模式 --> adapter
备忘录模式 --> memento
组合模式 --> composite
迭代器模式 --> iterator
单例模式 --> singleton
桥接模式 --> bridge
命令模式 --> command
职责链模式 --> responsibility
中介者模式 --> mediator
享元模式 --> flyweight
解释器模式 --> interpreter
访问者模式 --> visitor

exercisedesignmodel's People

Contributors

wangxp423 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.