Visitor
2016-06-29 13:52:54 4 举报
Visitor 访问者模式
作者其他创作
大纲/内容
Visitor
+ Visit(Employee)
Engineer
Employee
+ name:String+ income:double+ vacationDays:int
+Accept(Visitor)
Salesman
VacationVisitor
Economist
EmployeeManager
- employees:List
+ Attach(Employee)+ Detach(Employee)+ Accept(Visitor)
IncomeVisitor
Client
- em:Employee
+ operation1(params):returnType- operation2(params)- operation3()
0 条评论
下一页