Brain Academy android VIP video, you need to come in and see +357937168

Architecture_01

 

First share a wave, some videos of the open class:

Link:  https://yun.baidu.com/s/1c1K7f6C  Password: a3vp

If you are interested, you can study the content of the open class first. It is quite good, although there is a lot of time for advertising.

 


Design Patterns

Six principles of design patterns

Open-Closed Principle (General)

对扩展开放,对修改封闭

Interface Segregation Principle

每个接口中不存在子类用不到却必须实现的方法,如果不然,就要将接口拆分。

Dependency Inversion Principle

面向接口编程,依赖于抽象而不依赖于具体任何基类可以出现的地方,子类一定可以出现。

Demeter's Principle (Least Knowing Principle)

一个类对自己依赖的类知道的越少越好。只与直接的朋友通信。

Single Responsibility Principle

每个类应该实现单一的职责

Liskov Substitution Principle

任何基类可以出现的地方,子类一定可以出现。

pending upgrade…

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326241250&siteId=291194637