huenchao / questions

每天想到的问题,都放在issue中。
6 stars 2 forks source link

Object Oriented 26讲杂七杂八截图(最后汇总) #28

Open huenchao opened 4 years ago

huenchao commented 4 years ago

image

huenchao commented 4 years ago

image

huenchao commented 4 years ago

image

huenchao commented 4 years ago

image

huenchao commented 4 years ago

image

huenchao commented 4 years ago

image

huenchao commented 4 years ago

image

huenchao commented 4 years ago

image

对比dip

huenchao commented 4 years ago

image

huenchao commented 4 years ago

image

huenchao commented 4 years ago

image

image

生命周期就可以这样设计。

huenchao commented 4 years ago

8大原则我感觉就是 接口化(开放封闭、单一职责、liskov、封装变化点、接口隔离)---》依赖倒置、面向接口编程、优先组合。

huenchao commented 4 years ago

第一点:寻找稳定点,和变化点,再去重构到模式!!!!