---
title: "依赖倒置原则"
author: "smiky"
date: "2015-01-06T11:05:26Z"
tags: []
categories: ["非技术"]
slug: "untitled"
draft: false
lastmod: "2015-01-06T11:05:26Z"
id: 2173053
url: "https://smiky.iteye.com/blog/2173053"
---

可悲啊，工作这么多年到今天才彻底明白依赖倒置原则.

一句以记之：上层模块声明自己所需要服务的接口，由具体的下层模块去实现。

即下层依赖于上层了。