/ 水滴石穿 / Design pattern principles

Design pattern principles

2016-02-03 posted in []

The first design pattern principle

> program to an interface, not an implementation

The sencond design pattern principle

> favor object composition over class inheritance