泛化(Generalization)
表示继承的关系
使用空心三角形+实线表示
实现(Realization)
使用空心三角形+虚线表示
依赖(Dependency)
一个类的方法参数需要传入另一个类的对象,就表示依赖这个类
依赖关系用虚线箭头表示
关联(Association)
一个类的成员变量的类型是另一个类,就表示关联了这个类
关联关系用实线箭头表示
聚合(Aggregation)
聚合是强的关联关系
聚合关系用空心的菱形+实线箭头表示
组合(Composition)
组合是强的聚合关系
组合关系用实心的菱形+实线箭头表示,还可以使用连线两端的数字表示某一端有几个实例