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

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.
主站蜘蛛池模板: 句容市| 保亭| 道孚县| 梓潼县| 汝州市| 韶山市| 浑源县| 开封市| 南部县| 乌恰县| 鱼台县| 拉孜县| 苗栗县| 屏东市| 连山| 沙田区| 侯马市| 赤峰市| 龙陵县| 丹棱县| 巴彦淖尔市| 云梦县| 虹口区| 漯河市| 肇源县| 莎车县| 德兴市| 西乌珠穆沁旗| 和林格尔县| 鸡泽县| 大方县| 即墨市| 夏河县| 岐山县| 泗洪县| 达孜县| 永济市| 兴业县| 且末县| 新余市| 比如县|