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

Examining the core design patterns

Let's continue our journey into the core design patterns:

  • Structural design pattern: Patterns under this category deal with the composition of classes or objects. In the enterprise application, there are two common techniques for reusing functionality in object-oriented systems as follows:
    • Inheritance: It is used to inherit commonly used states and behaviors from other classes.
    • Composition: It is used to compose the other objects as instance variables of classes. It defines ways to compose objects to obtain new functionalities.
  • Behavioral design pattern: Patterns under this category characterize the ways in which classes or objects interact with and distribute responsibility. These patterns define the methods of communication between the objects in the enterprise application. So here, you will learn how to use behavioral patterns to reduce complicated flow control. Furthermore, you will use behavioral patterns to encapsulate algorithms and dynamically select them at runtime.
主站蜘蛛池模板: 财经| 扎囊县| 新乐市| 玉环县| 怀化市| 沂源县| 常熟市| 阿坝县| 恩平市| 体育| 濮阳县| 嘉义市| 南溪县| 日照市| 鄱阳县| 邻水| 松溪县| 永清县| 信阳市| 德令哈市| 荔浦县| 油尖旺区| 抚松县| 乌什县| 牡丹江市| 白水县| 四子王旗| 灵宝市| 凤庆县| 青阳县| 昌都县| 固阳县| 宾阳县| 枣强县| 长岛县| 三穗县| 延边| 增城市| 麻江县| 北宁市| 阿克|