Design Princple
1、Identify the aspects of your application that vary and separate them from what stays the same.
2、Program to an interface, not an implementation.
3、Favor composition over inheritance.
1、Identify the aspects of your application that vary and separate them from what stays the same.
2、Program to an interface, not an implementation.
3、Favor composition over inheritance.