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

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.

主站蜘蛛池模板: 灌阳县| 铜陵市| 达拉特旗| 林口县| 玛曲县| 大余县| 玛曲县| 凌源市| 扶绥县| 化德县| 惠东县| 金塔县| 商都县| 汨罗市| 德钦县| 忻州市| 星子县| 济源市| 郧西县| 广饶县| 上饶县| 泰州市| 建湖县| 南京市| 望城县| 湖南省| 小金县| 临邑县| 嘉兴市| 图木舒克市| 常熟市| 礼泉县| 彭山县| 卫辉市| 乌什县| 东阿县| 乐安县| 宜兰市| 凤冈县| 宁都县| 张家口市|