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

  • 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.
主站蜘蛛池模板: 乐清市| 全州县| 怀来县| 青阳县| 岐山县| 全州县| 会理县| 建宁县| 临泽县| 轮台县| 吉木萨尔县| 南昌县| 遂溪县| 安康市| 高平市| 沁阳市| 聂拉木县| 调兵山市| 泰州市| 敦化市| 苏尼特右旗| 安陆市| 邵东县| 安义县| 唐山市| 墨江| 赤壁市| 万荣县| 昂仁县| 驻马店市| 明溪县| 乐至县| 奉新县| 襄汾县| 云阳县| 罗城| 峨眉山市| 宁安市| 靖边县| 开平市| 阜新市|