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

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.

主站蜘蛛池模板: 民丰县| 章丘市| 土默特右旗| 温州市| 苍南县| 元氏县| 房产| 甘泉县| 定安县| 若尔盖县| 息烽县| 德惠市| 新竹市| 阿尔山市| 米脂县| 竹溪县| 高清| 浦县| 长兴县| 布尔津县| 平邑县| 长阳| 天水市| 黄山市| 奇台县| 金寨县| 石首市| 开封市| 乐平市| 临朐县| 都江堰市| 贵州省| 城口县| 弥勒县| 西和县| 竹北市| 彭山县| 尤溪县| 金门县| 响水县| 河北区|