- Hands-On Penetration Testing with Python
- Furqan Khan
- 104字
- 2021-07-02 14:13:58
Association
The association relationship maintains a has a kind of relationship between the objects of the classes. The has a relation can either be one-to-one or one-to-many. In the following example, we can see that there is a one-to-one association relationship between the Employee and Manager classes, as an Employee would only have one Manager class. We also have a one-to-one association relation between Employee and Department. The reverse of these relationships would be one-to-many relationships as one Department class might have many employees and one manager might have many employees reporting to them. The following code snippet depicts the association relationship:

推薦閱讀
- Extending Jenkins
- Learning Real-time Processing with Spark Streaming
- INSTANT OpenCV Starter
- Designing Hyper-V Solutions
- HDInsight Essentials(Second Edition)
- 網(wǎng)站構(gòu)建技術(shù)
- 劍指Java:核心原理與應(yīng)用實(shí)踐
- Swift語言實(shí)戰(zhàn)精講
- 運(yùn)維前線:一線運(yùn)維專家的運(yùn)維方法、技巧與實(shí)踐
- JSP程序設(shè)計(jì)實(shí)例教程(第2版)
- Practical Microservices
- 深入解析Java編譯器:源碼剖析與實(shí)例詳解
- Java EE 8 and Angular
- 編程的原則:改善代碼質(zhì)量的101個(gè)方法
- Qt 5.12實(shí)戰(zhàn)