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

Summary

This chapter started with an introduction to OOP. Portability, inheritance, encapsulation, and polymorphism were deemed to be the primary benefits of OOP and were explored. A sample OOP class was examined in detail. That class, the Bicycle class, was used to demonstrate key OOP concepts to include instance variables, the this reference, accessors, mutators, driver class, constructors, overloading, and method call chaining. The chapter ended with a look at key OOP principles—create concise objects, encapsulate to protect, and purposeful inheritance. 

In the next chapter, Behavioral Design Patterns, we will explore the behavioral design pattern category and its individual design patterns of chain of responsibility, mediator, memento, null object, observer, state, strategy, template method, and visitor. We will examine the programming challenges and design patterns that resolve them.

主站蜘蛛池模板: 嘉鱼县| 六盘水市| 巫山县| 若尔盖县| 黑河市| 遂川县| 八宿县| 左权县| 翁牛特旗| 滁州市| 扬中市| 铜山县| 惠州市| 咸宁市| 屏南县| 富裕县| 五家渠市| 陇川县| 隆德县| 孝昌县| 和平县| 开封市| 乌拉特中旗| 宿松县| 平定县| 琼结县| 烟台市| 杭锦旗| 库尔勒市| 江门市| 读书| 资兴市| 阿克| 房产| 缙云县| 中西区| 仪征市| 皋兰县| 都昌县| 罗定市| 武定县|