- Expert C++
- Vardan Grigoryan Shunguang Wu
- 90字
- 2021-06-24 16:34:03
Class relationships
Object intercommunication is at the heart of object-oriented systems. The relationship is the logical link between objects. The way we can distinguish or set up a proper relationship between classes of objects defines both the performance and quality of the system design overall. Consider the Product and Warehouse classes; they are in a relationship called aggregation because the Warehouse contains Products, that is, the Warehouse aggregates Products:
There are several kinds of relationships in terms of pure OOP, such as association, aggregation, composition, instantiation, generalization, and others.
推薦閱讀
- Mastering OpenLayers 3
- Web前端開發技術:HTML、CSS、JavaScript(第3版)
- C語言程序設計案例教程(第2版)
- INSTANT FreeMarker Starter
- 編程珠璣(續)
- Java開發入行真功夫
- Blender 3D Incredible Machines
- 教孩子學編程:C++入門圖解
- 表哥的Access入門:以Excel視角快速學習數據庫開發(第2版)
- Mastering AWS Security
- Java編程從入門到精通
- Magento 2 Beginners Guide
- 深入淺出Python數據分析
- Continuous Integration,Delivery,and Deployment
- Instant SQL Server Analysis Services 2012 Cube Security