1.Definition
a type of static structure diagram that describes the structure of a system by showing the system’s:
- classes
- their attributes
- operations (or methods)
- relationships among objects
2.Class Visibility
- + public
- - private
- # protected
3.Parameter Directionality
- in (pass to)
- out (pass back)
- inout (both)
4.Perspectives of Class Diagram

5.Relationships between classes

① inheritance
- is-a
- point from the child to the parent
② aggregation
- B is a part of A
- separate lifetimes
- * to 1
③ Composition
- B cannot stand by itself
6.Example
- Order System

- GUI

949

被折叠的 条评论
为什么被折叠?



