类与类之间的关系及在代码中的表现

1.继承:

Code

2.关联关系

Code

3.聚合关系

Code

4.组合关系

Code

5.依赖关系

Code
原文地址:https://www.cnblogs.com/engine1984/p/1327829.html