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

  • 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.
主站蜘蛛池模板: 资阳市| 西和县| 基隆市| 洛南县| 罗源县| 鄂尔多斯市| 肃北| 福鼎市| 庆元县| 驻马店市| 清远市| 云阳县| 大冶市| 丘北县| 来安县| 南召县| 凭祥市| 奉节县| 东明县| 图们市| 西充县| 米易县| 衢州市| 靖远县| 广河县| 乌鲁木齐市| 瓮安县| 江达县| 鄂温| 临汾市| 壤塘县| 读书| 枝江市| 南陵县| 成武县| 光山县| 荔波县| 理塘县| 临沧市| 皮山县| 莎车县|