- 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.
推薦閱讀
- 自己動手寫搜索引擎
- LabVIEW2018中文版 虛擬儀器程序設(shè)計自學(xué)手冊
- 深入淺出Electron:原理、工程與實踐
- 深度學(xué)習(xí)經(jīng)典案例解析:基于MATLAB
- Linux核心技術(shù)從小白到大牛
- Python機(jī)器學(xué)習(xí)經(jīng)典實例
- 軟件架構(gòu):Python語言實現(xiàn)
- Java 9模塊化開發(fā):核心原則與實踐
- IBM Cognos Business Intelligence 10.1 Dashboarding cookbook
- Unity 2018 Augmented Reality Projects
- Python開發(fā)基礎(chǔ)
- Data Science Algorithms in a Week
- Modular Programming with JavaScript
- Xamarin Cross-Platform Development Cookbook
- jQuery Mobile Web Development Essentials(Second Edition)