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

  • Spring 5 Design Patterns
  • Dinesh Rajput
  • 148字
  • 2021-07-08 09:59:35

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.
主站蜘蛛池模板: 桂林市| 无极县| 苍山县| 洪泽县| 佛冈县| 丹东市| 平利县| 通道| 阆中市| 广德县| 正蓝旗| 云阳县| 黎城县| 新野县| 高州市| 望谟县| 刚察县| 香港 | 如皋市| 平江县| 青海省| 鄂伦春自治旗| 三都| 台湾省| 睢宁县| 金塔县| 乌海市| 铜梁县| 阜康市| 灵寿县| 宁强县| 彭山县| 清镇市| 临西县| 大埔区| 左贡县| 山东省| 呼和浩特市| 永春县| 松原市| 宣武区|