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

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.

主站蜘蛛池模板: 田东县| 长海县| 瑞昌市| 宜宾市| 湖州市| 江阴市| 潞城市| 铜梁县| 三都| 通城县| 当雄县| 永修县| 剑河县| 乌拉特中旗| 晋宁县| 沧源| 达尔| 鄂尔多斯市| 鹿邑县| 砀山县| 竹溪县| 横峰县| 丹阳市| 崇义县| 陈巴尔虎旗| 金湖县| 文安县| 杂多县| 平塘县| 紫金县| 江阴市| 临海市| 安平县| 丁青县| 白河县| 宜阳县| 四子王旗| 温泉县| 卢湾区| 永登县| 依兰县|