官术网_书友最值得收藏!

Principles of design patterns

So far, we have discussed taking a multi-class approach to designing object-oriented programs. We also used examples to demonstrate the use of accessors, mutators, constructors, and driver classes. There are three key principles to bear in mind when studying the design patterns presented in subsequent chapters of this book:

  • Creating concise objects
  • Encapsulating to protect
  • Being purposeful with inheritance

These principles are explored in the subsequent sections.

主站蜘蛛池模板: 奉化市| 农安县| 双辽市| 湟源县| 黎川县| 青海省| 原平市| 鸡东县| 金山区| 石阡县| 武汉市| 黔南| 上思县| 明溪县| 宽城| 筠连县| 霸州市| 安新县| 邢台县| 新野县| 色达县| 班戈县| 尼木县| 天柱县| 西宁市| 阳城县| 马关县| 毕节市| 怀化市| 巴林左旗| 盘山县| 长宁县| 丰台区| 西藏| 遂溪县| 岢岚县| 新昌县| 栖霞市| 开阳县| 维西| 汾阳市|