软件设计三大原则

1. 面向接口编程,而不是面向实现编程

2. 组合优先于继承

3. 将经常变化的部分从不变的部分中分离出来

1. Identify the aspects of your application that vary and separate them from what stays the same

2. favor composition over inheritance

3. program to an interface,not an implementation

    原文作者:czjuttsw
    原文地址: https://blog.csdn.net/czjuttsw/article/details/8530062
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞