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

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.

主站蜘蛛池模板: 深水埗区| 天台县| 抚宁县| 基隆市| 胶州市| 秀山| 全南县| 青海省| 昆山市| 湖北省| 阿克陶县| 涞源县| 德州市| 东乌| 正镶白旗| 上蔡县| 宜君县| 襄汾县| 长春市| 颍上县| 高密市| 连平县| 天等县| 东宁县| 德惠市| 崇文区| 德令哈市| 长阳| 哈巴河县| 板桥市| 雷山县| 阳江市| 闸北区| 浪卡子县| 江都市| 旅游| 洪江市| 永新县| 丰城市| 长白| 河南省|