首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件开发 >

软件设计3大原则

2013-01-26 
软件设计三大原则1. 面向接口编程,而不是面向实现编程2. 组合优先于继承3. 将经常变化的部分从不变的部分

软件设计三大原则

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

热点排行