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

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:

主站蜘蛛池模板: 丹江口市| 宁阳县| 团风县| 乐清市| 维西| 凉城县| 砀山县| 印江| 通道| 彰武县| 寿光市| 紫金县| 霍山县| 四子王旗| 任丘市| 乾安县| 明溪县| 泸西县| 邵阳市| 应用必备| 阿克陶县| 中卫市| 榆社县| 两当县| 南澳县| 永宁县| 和龙市| 静宁县| 南昌市| 秦安县| 黄石市| 洛扎县| 阜城县| 厦门市| 仁怀市| 应用必备| 辽宁省| 台南市| 东乌珠穆沁旗| 民和| 曲沃县|