UML概述:是一种为面向对象软件设计提供的建模语言。
构成:事物things关系relationshs图diagrams
UML事物:构件事物 行为事物 分组事物 注释事物
UML关系:依赖dependency关联association泛化generalization实现realization
接下来是各种图:
1.用例图
2.类图
要知道四种关系的表示:关联(has a)--实线加上大于符号(语义较弱),实现加上空心菱形(聚合),实线加上实心菱形(组合)
泛化(继承/is a),实线加上右置空心三角形
实现(接口),虚线加上右置空心三角形
依赖(use a),虚线加上大于符号
3.顺序图
消息传递机制:
三种图的关系: