- 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.
推薦閱讀
- HornetQ Messaging Developer’s Guide
- Python程序設計教程(第2版)
- Android Studio Essentials
- Mastering Natural Language Processing with Python
- 技術領導力:程序員如何才能帶團隊
- OpenCV 3和Qt5計算機視覺應用開發
- 零基礎學Python網絡爬蟲案例實戰全流程詳解(高級進階篇)
- Procedural Content Generation for C++ Game Development
- Oracle GoldenGate 12c Implementer's Guide
- C語言程序設計習題與實驗指導
- Learning D
- Qt 5.12實戰
- Dart:Scalable Application Development
- Roslyn Cookbook
- Python架構模式:精通基于Python的API設計、事件驅動架構和包管理