- 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.
推薦閱讀
- Servlet/JSP深入詳解
- 數據結構與算法JavaScript描述
- Java開發入行真功夫
- Oracle BAM 11gR1 Handbook
- Reactive Programming With Java 9
- ASP.NET 3.5程序設計與項目實踐
- 重學Java設計模式
- 深度學習:Java語言實現
- Mastering Linux Security and Hardening
- Kivy Cookbook
- R語言:邁向大數據之路(加強版)
- Learning iOS Security
- Java 從入門到項目實踐(超值版)
- 寫給青少年的人工智能(Python版·微課視頻版)
- Arduino Electronics Blueprints