理解图
2018-03-21 13:02:07 2 举报
设计模式
作者其他创作
大纲/内容
聚合关系
Mouth
+ move():void
自关联
依赖关系
From
- buttons:Button[]
contains
双向关联
Vehicle
+ move () : void
car.move();
0..*
重数性关联
Node
- subNode : Node
Driver
+ drive(Car car)
purchases
LoginFrom
- loginbutton:JButton
has
Product
- customer:Customer
Student
-studentNo : String
+ study() : void
Person
#name : String#age : int
+ move() : void+ say() : void
is sold to
Car
- engine : Engine
+ Car(Engine engine)+ setEngine(Engine engine) : void
Head
- mouth : Mouth
+ Head()
Teacher
- teacherNo : String
+ teach () : void
单向关联
JButton
Customs
- address : Address
Engine
组合关系
Address
- products:Product[]
Ship
1..1
Button
0 条评论
下一页