官术网_书友最值得收藏!

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:

主站蜘蛛池模板: 班玛县| 呼玛县| 冕宁县| 三都| 巨鹿县| 景洪市| 青浦区| 岑巩县| 呼图壁县| 祁阳县| 金川县| 梨树县| 庆城县| 中阳县| 微山县| 万年县| 隆德县| 巴楚县| 福安市| 陵水| 桐梓县| 灯塔市| 沙田区| 和田县| 新田县| 宁城县| 田阳县| 黑龙江省| 青海省| 民县| 徐闻县| 万山特区| 泽州县| 潞西市| 石嘴山市| 东莞市| 白沙| 略阳县| 孝昌县| 元阳县| 麟游县|